зеркало из https://github.com/mozilla/gecko-dev.git
e5b57b5d4c
For every cookie permission check CookieJarSettings::CookiePermission has to create a new principal. This is slow. It uses a cloned principal so it can strip the origin attributes which should not be used for the permission check. With this patch we no longer need to clone the principal. We pass in the original principal and perform the OA stripping on an OA copy in BasePrincipal::EqualsForPermission. Before, EqualsForPermission was guaranteed to get a content principal, because ClonePrincipalForPermission enforced it. BasePrincipal::EqualsForPermission was refactored to account for non content principals. Differential Revision: https://phabricator.services.mozilla.com/D120834 |
||
---|---|---|
.. | ||
test | ||
Permission.cpp | ||
Permission.h | ||
PermissionDelegateHandler.cpp | ||
PermissionDelegateHandler.h | ||
PermissionDelegateIPCUtils.h | ||
PermissionManager.cpp | ||
PermissionManager.h | ||
components.conf | ||
moz.build |