Closed Bug 1070516 Opened 12 years ago Closed 12 years ago

[e10s] Addons window.content shim breaks some addons

Categories

(Firefox :: Extension Compatibility, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 35

People

(Reporter: glenjamin+bmo, Assigned: billm)

References

Details

Attachments

(1 file)

As discussed in bug 1066623, an exception is being thrown from within the addons compatibility shim. As far as I can tell, the shim is being applied to `window` objects other than the top-level firefox window (chatzilla's primary window in this case), which then errors because gBrowser is undefined.
Assignee: nobody → wmccloskey
Status: NEW → ASSIGNED
Attachment #8492628 - Flags: review?(mconley)
Comment on attachment 8492628 [details] [diff] [review] fix-chrome-window-shim Review of attachment 8492628 [details] [diff] [review]: ----------------------------------------------------------------- ::: toolkit/components/addoncompat/multiprocessShims.js @@ +97,5 @@ > } > } > > + if (target instanceof Ci.nsIDOMChromeWindow && > + target.document.documentURI == "chrome://browser/content/browser.xul") { I'm a bit hesitant to hardcode something so fully Firefox-specific to toolkit/. Do we have any alternatives to this?
Flags: needinfo?(wmccloskey)
I could check if there's a "gMultiProcessBrowser" property on the window. It's also browser-specific, but we already use gBrowser a bunch in toolkit.
Flags: needinfo?(wmccloskey)
(In reply to Bill McCloskey (:billm) from comment #3) > I could check if there's a "gMultiProcessBrowser" property on the window. > It's also browser-specific, but we already use gBrowser a bunch in toolkit. Ok, I think I might prefer that. r=me with that change.
Attachment #8492628 - Flags: review?(mconley)
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 35
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: