Closed
Bug 1030420
Opened 10 years ago
Closed 10 years ago
Enable dom.compartment_per_addon by default on nightly
Categories
(Core :: XPConnect, defect, P1)
Tracking
()
RESOLVED
FIXED
mozilla35
Tracking | Status | |
---|---|---|
e10s | m3+ | --- |
People
(Reporter: billm, Assigned: bholley)
References
Details
(Keywords: addon-compat, dev-doc-needed)
Attachments
(3 files, 1 obsolete file)
(deleted),
patch
|
bholley
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
billm
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
bholley
:
review+
|
Details | Diff | Splinter Review |
This bug will track any regressions caused by enabling dom.compartment_per_addon.
Reporter | ||
Updated•10 years ago
|
Assignee: nobody → wmccloskey
tracking-e10s:
--- → ?
Updated•10 years ago
|
Blocks: old-e10s-m2
Updated•10 years ago
|
Priority: -- → P1
Assignee | ||
Updated•10 years ago
|
Attachment #8463616 -
Flags: review?(bobbyholley) → review+
Assignee | ||
Comment 2•10 years ago
|
||
Comment on attachment 8463616 [details] [diff] [review]
enable-comp-per-addon
Er, wait. We want this nightly-only I think.
Attachment #8463616 -
Flags: review+ → review-
Reporter | ||
Comment 3•10 years ago
|
||
Attachment #8463616 -
Attachment is obsolete: true
Attachment #8463629 -
Flags: review?(bobbyholley)
Assignee | ||
Updated•10 years ago
|
Attachment #8463629 -
Flags: review?(bobbyholley) → review+
Comment 4•10 years ago
|
||
billm: are there any issues blocking you from enabling dom.compartment_per_addon on Nightly? bholley r+'d your patch last month.
Flags: needinfo?(wmccloskey)
Reporter | ||
Comment 5•10 years ago
|
||
This is not green on try. We actually run all the mochitests as part of an add-on, and turning this on exposed a number of problems. I haven't had time to debug yet.
Flags: needinfo?(wmccloskey)
Assignee | ||
Comment 6•10 years ago
|
||
Taking this, per discussion with Bill.
Assignee: wmccloskey → bobbyholley
Assignee | ||
Comment 7•10 years ago
|
||
Bill said he had a try push somewhere, but I can't find it. Here's a new one: https://tbpl.mozilla.org/?tree=Try&rev=cdc30036d96d
Assignee | ||
Comment 8•10 years ago
|
||
Assignee | ||
Updated•10 years ago
|
Depends on: e10s-tree-style-tab
Assignee | ||
Comment 9•10 years ago
|
||
Assignee | ||
Comment 10•10 years ago
|
||
Assignee | ||
Comment 12•10 years ago
|
||
Assignee | ||
Comment 13•10 years ago
|
||
I assume you meant the opposite dependency relationship, right Bill?
Assignee | ||
Comment 14•10 years ago
|
||
The relevant parts of bug 1042680 (which should really be broken up into sub-bugs) have now landed. Clearing the blocker.
No longer depends on: e10s-tree-style-tab
Assignee | ||
Comment 15•10 years ago
|
||
nsIPrefService and nsIPrefBranch are implemented by the same XPCOM object, but
getBranch lives on nsIPrefService rather than nsIPrefBranch. The bug here is
only noticeable if nobody has already QIed the per-scope-singleton object to
nsIPrefService. If we create two scopes where there previously was one, that's
more likely to be the case, and manifest itself as the bc1 orange we see on TBPL.
Attachment #8491730 -
Flags: review?(wmccloskey)
Reporter | ||
Updated•10 years ago
|
Attachment #8491730 -
Flags: review?(wmccloskey) → review+
Assignee | ||
Comment 16•10 years ago
|
||
I realized that the way I turned off the assertion in AddonWindowOrNull makes the function useless for our purposes. The patch in bug 1068225 will fix that.
Depends on: 1068225
Assignee | ||
Comment 17•10 years ago
|
||
Assignee | ||
Comment 18•10 years ago
|
||
Ugh, sorry this is taking so long.
It looks like the one remaining failure is one which I hadn't noticed before, because it's linux-debug only: browser/devtools/debugger/test/browser_dbg_addon-modules.js
The failure looks pretty inscrutable, so I'm spinning up a linux VM now to see if I can reproduce it locally.
Assignee | ||
Comment 19•10 years ago
|
||
Doesn't reproduce on a linux VM, or with at least some of the surrounding tests. Here's a try run with some logging:
https://tbpl.mozilla.org/?tree=Try&rev=b31915e96a4d
Assignee | ||
Comment 20•10 years ago
|
||
Assignee | ||
Comment 21•10 years ago
|
||
I think I have a fix:
https://tbpl.mozilla.org/?tree=Try&rev=8f82452664a6
Assignee | ||
Comment 22•10 years ago
|
||
Assignee | ||
Comment 23•10 years ago
|
||
I got r=jimb on this yesterday over IRC. We should be good to go now.
Attachment #8494305 -
Flags: review+
Assignee | ||
Comment 24•10 years ago
|
||
Assignee | ||
Comment 25•10 years ago
|
||
Looks like the dt1 orange came back, even though it looks definitively fixed in comment 22. I realized that the previous try run was probably relying on the dump() statements to force stringification and trigger the exception in the case of dead object proxies.
Followup to do that: https://hg.mozilla.org/integration/mozilla-inbound/rev/97d05c73c5a6
Comment 26•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/0c28d9772cd2
https://hg.mozilla.org/mozilla-central/rev/b419fc2a66bc
https://hg.mozilla.org/mozilla-central/rev/35dcddea2c7a
https://hg.mozilla.org/mozilla-central/rev/97d05c73c5a6
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla35
Updated•10 years ago
|
Keywords: addon-compat
Updated•10 years ago
|
Comment 27•10 years ago
|
||
So we're seeing a behavior change in our add-on because of this. It's probably our bug, I just want to understand what's going on.
We had some code we were running async, and it was working before, but now some globals aren't defined anymore.
Before, the page went away, but the globals were still there, now some are, and some aren't.
Comment 28•10 years ago
|
||
Bill, whenever you file a bug, could you please make sure the original description is meaningful and self-explanatory? When I come here, I have no idea what this is about or why it breaks my addon.
Comment 29•10 years ago
|
||
Ally, can you help Mike find his missing globals in comment 27? We should document on MDN how the add-on compartments work and how add-on developers can control the visibility of their global variables.
Flags: needinfo?(ally)
Comment 30•10 years ago
|
||
Shims aren't related to global variables, and I don't know jack about the underlying implementation of js compartments.
billm is a much better person to ask.
Flags: needinfo?(ally) → needinfo?(wmccloskey)
Reporter | ||
Comment 31•10 years ago
|
||
In this bug, we changed the global that add-ons run it to be different than the normal chrome window. However, we've tried to emulate the old behavior so that add-ons can still see each others globals as well as global properties on the window.
We don't intend for this bug to change any addon-visible behaviors (although we do expect bugs). If something isn't working, please file a bug with a description of what you're doing and the actual and expected results. Please have it block this bug and CC me and Bobby. Thanks, and sorry for the trouble.
Flags: needinfo?(wmccloskey)
Updated•10 years ago
|
Keywords: dev-doc-needed
You need to log in
before you can comment on or make changes to this bug.
Description
•