As you will see when run outside the page-mod most of the test pass in firefox. But when done inside a page-mode only a few pass and the test end before they finish because of some unknown error.
I thought this would help in testing the page-mod code so that it could run jquery and frameworks like jquery.
When you extract the file there is a readme.txt that gives instructions on how to run.
> --
> You received this message because you are subscribed to the Google Groups "mozilla-labs-jetpack" group.
> To post to this group, send email to mozilla-la...@googlegroups.com.
> To unsubscribe from this group, send email to mozilla-labs-jet...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/mozilla-labs-jetpack?hl=en.
>
However when trying to port the same functionality over to jetpack it does not work. This is caused by the firefox sandbox not implementing all the methods and features that are available in the normal page. What I think would be really great is if the jetpack and firefox code worked more like chromes isolated worlds so that any javascript can be written against the page but only have access to the DOM. This would allow any currently usable javascript framework to work just as it does in a page now but instead be used in a jetpack.
My main reason for using already existing frameworks like Jquery and its plugins is they isolate me from writing browser specific code for my main functionality which saves me a considerable amount of time.