Make nullprincipal creation faster

RESOLVED FIXED in Firefox 40

Status

()

defect
RESOLVED FIXED
4 years ago
4 years ago

People

(Reporter: bzbarsky, Assigned: bzbarsky)

Tracking

(Blocks 1 bug)

Trunk
mozilla40
x86
macOS
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(firefox40 fixed)

Details

Attachments

(2 attachments)

The current setup is stupid.  We do the following:

1)  In nsScriptSecurityManager::CreateCodebasePrincipal we use the contractid instead of just creating a nullprincipal directly.

2)  In nsNullPrincipal we end up creating a URI string to pass to nsNullPrincipalURI, which then just parses it apart.  That's silly.
Attachment #8585860 - Flags: review?(bugs) → review+
Attachment #8585859 - Flags: review?(bugs) → review+
https://hg.mozilla.org/mozilla-central/rev/60d47f603817
https://hg.mozilla.org/mozilla-central/rev/c39ec40cb4e1
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla40
You need to log in before you can comment on or make changes to this bug.