Closed
Bug 1379023
Opened 8 years ago
Closed 8 years ago
Clean up system principal handling in xpconnect/loader/
Categories
(Core :: XPConnect, enhancement)
Core
XPConnect
Tracking
()
RESOLVED
FIXED
mozilla56
| Tracking | Status | |
|---|---|---|
| firefox56 | --- | fixed |
People
(Reporter: mccr8, Assigned: mccr8)
References
Details
Attachments
(4 files)
This function saves the target object, prior to unwrapping, and also the principal of the target object. At least the latter used to be needed, but now we only need to know if the unwrapped principal is the system or not to decide if we're using the cache. Limiting what is done makes it easier to understand what is happening, I think.
Also, I'm renaming result_obj to resultObj.
| Assignee | ||
Comment 1•8 years ago
|
||
There's a bunch of old gunk related to the system principal in js/xpconnect/loader that can be cleaned up.
Summary: Clean up principal handling in mozJSSubScriptLoader::DoLoadSubScriptWithOptions() → Clean up system principal handling in xpconnect/loader/
| Comment hidden (mozreview-request) |
| Comment hidden (mozreview-request) |
| Comment hidden (mozreview-request) |
| Comment hidden (mozreview-request) |
| Comment hidden (mozreview-request) |
| Comment hidden (mozreview-request) |
| Comment hidden (mozreview-request) |
| Comment hidden (mozreview-request) |
| Assignee | ||
Comment 10•8 years ago
|
||
I removed a little bit more dead code from part 3 and 4.
Comment 11•8 years ago
|
||
| mozreview-review | ||
Comment on attachment 8884391 [details]
Bug 1379023, part 1 - Directly compute if we're compiling in a content compartment in DoLoadSubScriptWithOptions.
https://reviewboard.mozilla.org/r/155314/#review160446
Nice cleanups!
Attachment #8884391 -
Flags: review?(mrbkap) → review+
Comment 12•8 years ago
|
||
| mozreview-review | ||
Comment on attachment 8884392 [details]
Bug 1379023, part 2 - Remove unused systemPrincipal argument to ReadCachedScript.
https://reviewboard.mozilla.org/r/155316/#review160448
Attachment #8884392 -
Flags: review?(mrbkap) → review+
Comment 13•8 years ago
|
||
| mozreview-review | ||
Comment on attachment 8884393 [details]
Bug 1379023, part 3 - Make WriteCachedScript assert about the system principal not require the argument.
https://reviewboard.mozilla.org/r/155318/#review160450
Attachment #8884393 -
Flags: review?(mrbkap) → review+
Comment 14•8 years ago
|
||
| mozreview-review | ||
Comment on attachment 8884394 [details]
Bug 1379023, part 4 - Remove mSystemPrincipal fields from mozJSSubScriptLoader and mozJSComponentLoader.
https://reviewboard.mozilla.org/r/155320/#review160452
Attachment #8884394 -
Flags: review?(mrbkap) → review+
Comment 15•8 years ago
|
||
Pushed by amccreight@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/41e05eeb1e45
part 1 - Directly compute if we're compiling in a content compartment in DoLoadSubScriptWithOptions. r=mrbkap
https://hg.mozilla.org/integration/autoland/rev/03939ed47d9b
part 2 - Remove unused systemPrincipal argument to ReadCachedScript. r=mrbkap
https://hg.mozilla.org/integration/autoland/rev/b1193f5966e1
part 3 - Make WriteCachedScript assert about the system principal not require the argument. r=mrbkap
https://hg.mozilla.org/integration/autoland/rev/98172f51813a
part 4 - Remove mSystemPrincipal fields from mozJSSubScriptLoader and mozJSComponentLoader. r=mrbkap
Comment 16•8 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/41e05eeb1e45
https://hg.mozilla.org/mozilla-central/rev/03939ed47d9b
https://hg.mozilla.org/mozilla-central/rev/b1193f5966e1
https://hg.mozilla.org/mozilla-central/rev/98172f51813a
Status: NEW → RESOLVED
Closed: 8 years ago
status-firefox56:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla56
You need to log in
before you can comment on or make changes to this bug.
Description
•