Closed Bug 715417 Opened 8 years ago Closed 8 years ago

Eliminate getPrincipalArray and globalPrivilegesEnabled from JSPrincipals

Categories

(Core :: JavaScript Engine, defect)

defect
Not set

Tracking

()

RESOLVED FIXED
mozilla12

People

(Reporter: bholley, Assigned: bholley)

Details

Attachments

(1 file)

They don't do anything useful, and haven't as long as hg has been around. They consume memory, and fool poor people like myself into thinking there's something plurals about a JSPrincipals.

Patch coming right up. I'd also love to rename JSPrincipals to JSPrincipal, but I'm guessing that will be vetoed on the grounds that it breaks the API for no good reason. _I_ say it's a good reason.

https://developer.mozilla.org/en/JSPrincipals will also need to be updated.
Attaching patch. Flagging mrbkap for review.
Attachment #585968 - Flags: review?(mrbkap)
Comment on attachment 585968 [details] [diff] [review]
Eliminate getPrincipalArray and globalPrivilegesEnabled from JSPrincipals. v1

Yeah, we should have done this when we started making backwards-incompatible changes to the UI.
Attachment #585968 - Flags: review?(mrbkap) → review+
Of course, by UI I meant API.
Linux built super-fast for this one and went green, which is good enough for me.

Landed to mozilla-inbound: http://hg.mozilla.org/integration/mozilla-inbound/rev/a761ff40306b
Target Milestone: --- → mozilla12
https://hg.mozilla.org/mozilla-central/rev/a761ff40306b
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.