Closed
Bug 668558
Opened 14 years ago
Closed 13 years ago
remove JSSecurityCallbacks::subsumePrincipals
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
mozilla17
People
(Reporter: luke, Assigned: luke)
References
Details
Attachments
(1 file, 3 obsolete files)
4.71 KB,
patch
|
mrbkap
:
review+
|
Details | Diff | Splinter Review |
With compartments we've been ripping out JSPrincipals::subsume calls. There are only two remaining uses: EvalCacheLookup and obj_watch_handler. The former is probably unnecessary since the table is per-compartment. The latter may be as well but Jason remembers that we failed to remove it earlier for some reason that perhaps Blake knows...
With JSPrincipals::subsume removed, JSPrincipals is just an opaque ref-counted annotation on scripts which is a heck of a lot less scary from a JS-hacker's perspective. (With compartment-per-global, script->principals can be removed which (as well as all these principal-taking JSAPIs) since the principal will necessarily be == compartment->principals.)
![]() |
Assignee | |
Comment 1•14 years ago
|
||
Here's the patch to do it. With document.domain, the EvalCacheLookup subsume check seems to want compartment-per-global. Any chance I'm wrong mrbkap?
Assignee: general → luke
Status: NEW → ASSIGNED
![]() |
Assignee | |
Comment 2•13 years ago
|
||
Let's do this.
Attachment #554911 -
Attachment is obsolete: true
Attachment #654006 -
Flags: review?(mrbkap)
![]() |
Assignee | |
Comment 3•13 years ago
|
||
Err, not that, this.
Attachment #654006 -
Attachment is obsolete: true
Attachment #654006 -
Flags: review?(mrbkap)
Attachment #654008 -
Flags: review?(mrbkap)
![]() |
Assignee | |
Updated•13 years ago
|
Summary: remove JSPrincipals::subsume → remove JSSecurityCallbacks::subsumePrincipals
![]() |
Assignee | |
Updated•13 years ago
|
Attachment #654008 -
Flags: review?(mrbkap)
![]() |
Assignee | |
Comment 4•13 years ago
|
||
Rebased
Attachment #654008 -
Attachment is obsolete: true
Attachment #654386 -
Flags: review?(mrbkap)
Comment 5•13 years ago
|
||
Comment on attachment 654386 [details] [diff] [review]
rm
Nice to see this go.
Attachment #654386 -
Flags: review?(mrbkap) → review+
![]() |
Assignee | |
Comment 6•13 years ago
|
||
Comment 7•13 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla17
You need to log in
before you can comment on or make changes to this bug.
Description
•