Closed
Bug 1070516
Opened 12 years ago
Closed 12 years ago
[e10s] Addons window.content shim breaks some addons
Categories
(Firefox :: Extension Compatibility, defect)
Firefox
Extension Compatibility
Tracking
()
RESOLVED
FIXED
Firefox 35
People
(Reporter: glenjamin+bmo, Assigned: billm)
References
Details
Attachments
(1 file)
|
903 bytes,
patch
|
Details | Diff | Splinter Review |
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 | ||
Comment 1•12 years ago
|
||
Comment 2•12 years ago
|
||
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?
Updated•12 years ago
|
Flags: needinfo?(wmccloskey)
| Assignee | ||
Comment 3•12 years ago
|
||
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)
Comment 4•12 years ago
|
||
(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.
| Assignee | ||
Comment 5•12 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/194eaa429b65
Pushed with the fix Mike requested.
Updated•12 years ago
|
Attachment #8492628 -
Flags: review?(mconley)
Comment 6•12 years ago
|
||
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.
Description
•