Closed
Bug 1491488
Opened 6 years ago
Closed 6 years ago
Stop waiving the return value of the Sandbox constructor when wantXrays is false
Categories
(Core :: XPConnect, enhancement, P2)
Core
XPConnect
Tracking
()
RESOLVED
FIXED
mozilla64
Tracking | Status | |
---|---|---|
firefox64 | --- | fixed |
People
(Reporter: bholley, Assigned: bholley)
References
(Blocks 2 open bugs)
Details
(Keywords: dev-doc-complete)
Attachments
(3 files)
(deleted),
patch
|
ochameau
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
whimboo
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
kmag
:
review+
|
Details | Diff | Splinter Review |
The current behavior is confusing. Now that we've gotten rid of XPCOM addons, we can afford to change the behavior here.
I'd also really love to get rid of wantXrays entirely, and have people use expanded principals when they want xrays from a sandbox. But that's a much riskier change that could break a lot of stuff, so I think we'll need to live with it.
Assignee | ||
Comment 1•6 years ago
|
||
Jim or ochameau, whoever gets to it first.
MozReview-Commit-ID: 28cQgvxxl0E
Attachment #9009300 -
Flags: review?(poirot.alex)
Attachment #9009300 -
Flags: review?(jimb)
Assignee | ||
Comment 2•6 years ago
|
||
MozReview-Commit-ID: CFpCiamhMBL
Attachment #9009301 -
Flags: review?(hskupin)
Assignee | ||
Comment 3•6 years ago
|
||
MozReview-Commit-ID: 9DrgknOT0Z3
Attachment #9009303 -
Flags: review?(kmaglione+bmo)
Assignee | ||
Comment 4•6 years ago
|
||
When this lands, we'll want to remove the red box at https://developer.mozilla.org/en-US/docs/Mozilla/Tech/XPCOM/Language_Bindings/Components.utils.Sandbox
Keywords: dev-doc-needed
Assignee | ||
Comment 5•6 years ago
|
||
Comment 6•6 years ago
|
||
(In reply to Bobby Holley (:bholley) from comment #0)
> I'd also really love to get rid of wantXrays entirely, and have people use
> expanded principals when they want xrays from a sandbox. But that's a much
> riskier change that could break a lot of stuff, so I think we'll need to
> live with it.
I think we can actually just get rid of wantXrays at this point. We already use expanded principals everywhere it would have been necessary in the past. The remaining uses are pretty much just cargo culted, at this point.
Assignee | ||
Comment 7•6 years ago
|
||
(In reply to Kris Maglione [:kmag] from comment #6)
> (In reply to Bobby Holley (:bholley) from comment #0)
> > I'd also really love to get rid of wantXrays entirely, and have people use
> > expanded principals when they want xrays from a sandbox. But that's a much
> > riskier change that could break a lot of stuff, so I think we'll need to
> > live with it.
>
> I think we can actually just get rid of wantXrays at this point. We already
> use expanded principals everywhere it would have been necessary in the past.
> The remaining uses are pretty much just cargo culted, at this point.
Certainly worth a try, as a followup to this bug!
Updated•6 years ago
|
Attachment #9009303 -
Flags: review?(kmaglione+bmo) → review+
Comment 8•6 years ago
|
||
Comment on attachment 9009301 [details] [diff] [review]
Part 2 - Mimic the old behavior in marionette. v1
Review of attachment 9009301 [details] [diff] [review]:
-----------------------------------------------------------------
Looks good to me. And I will follow-up on that workaround on bug 1274251 once this patch has been landed. Thanks!
Attachment #9009301 -
Flags: review?(hskupin) → review+
Updated•6 years ago
|
Priority: -- → P2
Comment 9•6 years ago
|
||
Comment on attachment 9009300 [details] [diff] [review]
Part 1 - Mimic the old behavior in devtools test. v1
Review of attachment 9009300 [details] [diff] [review]:
-----------------------------------------------------------------
Looks good to me.
This test may also benefit from getting rid of wantXrays, it is quite hard to follow!
Attachment #9009300 -
Flags: review?(poirot.alex) → review+
Assignee | ||
Updated•6 years ago
|
Attachment #9009300 -
Flags: review?(jimb)
Comment 10•6 years ago
|
||
Pushed by bholley@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/fbbd1b11e09f
Mimic the old behavior in devtools test. r=ochameau
https://hg.mozilla.org/integration/mozilla-inbound/rev/a0a8c0758631
Mimic the old behavior in marionette. r=whimboo
https://hg.mozilla.org/integration/mozilla-inbound/rev/fcc53ec73be9
Stop waiving the return value of the Sandbox constructor when wantXrays is false. r=kmag
Comment 11•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/fbbd1b11e09f
https://hg.mozilla.org/mozilla-central/rev/a0a8c0758631
https://hg.mozilla.org/mozilla-central/rev/fcc53ec73be9
Status: NEW → RESOLVED
Closed: 6 years ago
status-firefox64:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla64
Updated•6 years ago
|
Keywords: dev-doc-complete
You need to log in
before you can comment on or make changes to this bug.
Description
•