Side navigation
#6603 closed bug (duplicate)
Opened May 26, 2010 09:28PM UTC
Closed August 09, 2010 02:21AM UTC
Ugly patch to make jQuery not crash with Greasemonkey due to sandbox problems
Reported by: | taw | Owned by: | |
---|---|---|---|
Priority: | Milestone: | 1.4.3 | |
Component: | support | Version: | 1.4.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
jQuery 1.3.2 works with Greasemonkey, 1.4.2 does not - the culprit is eventSupported function which is used only for some minor features, so we can just try{}catch{} around it.
I know it doesn't *solve* the problem, just works around it. I haven't been able to figure out how to make it work right (and there are probably far more numerous issues with Greasemonkey+jQuery integration, not just this one), but this patch works around the "Component is not available" exception, and now it's possible to use most of jQuery from within Greasemonkey scripts.
I don't think it would break anything. So by moving Greasemonkey from won't-even-compile to mostly-working it's a great progress anyway.