Bug Tracker

Opened 10 years ago

Closed 9 years ago

#6603 closed bug (duplicate)

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.

Attachments (1)

jquery-1.4.2-gm-support.diff (1002 bytes) - added by taw 10 years ago.
Patch to make jQuery not die with "Component not avaialble" exception when used in Greasemonkey

Download all attachments as: .zip

Change History (3)

Changed 10 years ago by taw

Patch to make jQuery not die with "Component not avaialble" exception when used in Greasemonkey

comment:1 Changed 9 years ago by dmethvin

Component: unfiledsupport

comment:2 Changed 9 years ago by dmethvin

Resolution: duplicate
Status: newclosed

Dup of #5833.

Note: See TracTickets for help on using tickets.