gecko-dev/extensions/cookie
Ehsan Akhgari b63debc2d4 Bug 1517014 - Part 1: Add nsIPermissionManager.testPermissionOriginNoSuffix(), an API for testing permissions using an origin string without the overhead of parsing it into a URI; r=nika
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
2019-01-07 18:45:26 +00:00
..
test Bug 1517014 - Part 1: Add nsIPermissionManager.testPermissionOriginNoSuffix(), an API for testing permissions using an origin string without the overhead of parsing it into a URI; r=nika 2019-01-07 18:45:26 +00:00
moz.build Bug 1488784 - Part 2: Remove the XPCOM component registration for nsCookiePermission; r=jdm 2018-09-05 11:56:17 -04:00
nsCookieModule.cpp Bug 1511393 - Use c-basic-offset: 2 in Emacs mode line for C/C++ code. r=nbp 2018-12-01 04:52:05 +09:00
nsCookiePermission.cpp Bug 1517057 - Part 1: Remove support for the unused URI_FORBIDS_COOKIE_ACCESS protocol flag; r=baku 2019-01-02 15:42:08 +00:00
nsCookiePermission.h Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
nsPermission.cpp Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
nsPermission.h Bug 1511393 - Use c-basic-offset: 2 in Emacs mode line for C/C++ code. r=nbp 2018-12-01 04:52:05 +09:00
nsPermissionManager.cpp Bug 1517014 - Part 1: Add nsIPermissionManager.testPermissionOriginNoSuffix(), an API for testing permissions using an origin string without the overhead of parsing it into a URI; r=nika 2019-01-07 18:45:26 +00:00
nsPermissionManager.h Bug 1517014 - Part 1: Add nsIPermissionManager.testPermissionOriginNoSuffix(), an API for testing permissions using an origin string without the overhead of parsing it into a URI; r=nika 2019-01-07 18:45:26 +00:00