mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-30 14:17:36 -10:00
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.
30 lines
720 B
INI
30 lines
720 B
INI
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
|
|
# vim: set filetype=python:
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
TEST_DIRS += ['test']
|
|
|
|
UNIFIED_SOURCES += [
|
|
'nsCookieModule.cpp',
|
|
'nsCookiePermission.cpp',
|
|
'nsPermission.cpp',
|
|
'nsPermissionManager.cpp',
|
|
'nsPopupWindowManager.cpp',
|
|
]
|
|
|
|
LOCAL_INCLUDES += [
|
|
'/caps',
|
|
]
|
|
|
|
include('/ipc/chromium/chromium-config.mozbuild')
|
|
|
|
FINAL_LIBRARY = 'xul'
|
|
|
|
if CONFIG['GNU_CXX']:
|
|
CXXFLAGS += ['-Wno-error=shadow']
|
|
|
|
with Files('**'):
|
|
BUG_COMPONENT = ('Core', 'Networking: Cookies')
|