mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 11:55:49 +00:00
214e03003f
The permissions manager store uses principal origins with suffix in the key entry, but for the API entry points where we accept a raw nsIURI, we currently mint a new codebase principal with a blank OriginAttributes only to read out the origin string effectively, since the suffix is guaranteed to always be an empty string in this case. This can be slow, so this patch adds a fast path to bypass minting a new principal and uses ContentPrincipal::GenerateOriginNoSuffixFromURI() to generate the origin string from the input nsIURI directly. |
||
---|---|---|
.. | ||
auth | ||
cookie | ||
permissions | ||
pref | ||
spellcheck | ||
universalchardet | ||
build.mk | ||
confvars.sh | ||
moz.build | ||
moz.configure |