Skip to main content

Bug Tracker

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.

Attachments (1)
  • jquery-1.4.2-gm-support.diff (1.0 KB) - added by taw May 26, 2010 09:29PM UTC.

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

Change History (2)

Changed June 15, 2010 01:47AM UTC by dmethvin comment:1

component: unfiledsupport

Changed August 09, 2010 02:21AM UTC by dmethvin comment:2

resolution: → duplicate
status: newclosed

Dup of #5833.