Closed Bug 668558 Opened 14 years ago Closed 13 years ago

remove JSSecurityCallbacks::subsumePrincipals

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla17

People

(Reporter: luke, Assigned: luke)

References

Details

Attachments

(1 file, 3 obsolete files)

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.)
Attached patch removed (obsolete) — Splinter Review
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
Depends on: cpg
Attached patch rm (obsolete) — Splinter Review
Let's do this.
Attachment #554911 - Attachment is obsolete: true
Attachment #654006 - Flags: review?(mrbkap)
Attached patch rm (obsolete) — Splinter Review
Err, not that, this.
Attachment #654006 - Attachment is obsolete: true
Attachment #654006 - Flags: review?(mrbkap)
Attachment #654008 - Flags: review?(mrbkap)
Summary: remove JSPrincipals::subsume → remove JSSecurityCallbacks::subsumePrincipals
Attachment #654008 - Flags: review?(mrbkap)
Attached patch rmSplinter Review
Rebased
Attachment #654008 - Attachment is obsolete: true
Attachment #654386 - Flags: review?(mrbkap)
Comment on attachment 654386 [details] [diff] [review] rm Nice to see this go.
Attachment #654386 - Flags: review?(mrbkap) → review+
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.

Attachment

General

Created:
Updated:
Size: