mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-22 17:55:50 +00:00
b63debc2d4
For consumers which have an origin string, currently they need to parse it into a URI before they can call testPermission(). Internally, in the common case this nsIURI* argument will be immediately converted back into the same origin string in PermissionKey::CreateFromURI(). This means that the cost of parsing the original origin string will effectively end up being wasted in the common case. This patch adds an API that allows the consumer to test a permission using the origin string directly, and only parse it into an nsIURI when necessary, thereby avoiding this overhead. Differential Revision: https://phabricator.services.mozilla.com/D15543 --HG-- extra : moz-landing-system : lando |
||
---|---|---|
.. | ||
auth | ||
cookie | ||
permissions | ||
pref | ||
spellcheck | ||
universalchardet | ||
build.mk | ||
confvars.sh | ||
moz.build | ||
moz.configure |