Deletes toolkit/components/cookiebanners and everything that reached into it: the static and runtime prefs, the JSWindowActor registration, the nsILoadInfo.hasInjectedCookieForCookieBannerHandling plumbing and its IPC serialization, the Glean and Legacy Telemetry registrations, the Nimbus feature, and the shipped cookie-banner-rules-list Remote Settings dump. Notes for reviewers: - Removing the cookiebanners pref group from modules/libpref/moz.build and the StaticPrefList.yaml block must happen together; a mismatch fails at build time rather than lint time. - Deleting the local dump does not decommission the main/cookie-banner-rules-list Remote Settings collection. ESR and older clients still sync it live, so the server-side collection needs to outlive them and be retired separately. - docs/overview/gecko.md used nsCookieBannerService purely as its worked example of XPCOM component instantiation; the diagram is kept with a service that still exists. - Recorded perf pages will now show cookie banners, since hooks_recording.py no longer sets the dismissal prefs. Worth a follow-up if that shifts baselines. Differential Revision: https://phabricator.services.mozilla.com/D314673
185 lines
3.9 KiB
INI
185 lines
3.9 KiB
INI
# 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/.
|
|
|
|
with Files("**"):
|
|
BUG_COMPONENT = ("Core", "Preferences: Backend")
|
|
|
|
TEST_DIRS += ["test/gtest"]
|
|
|
|
XPCSHELL_TESTS_MANIFESTS += [
|
|
"test/unit/xpcshell.toml",
|
|
"test/unit_ipc/xpcshell.toml",
|
|
]
|
|
|
|
BROWSER_CHROME_MANIFESTS += ["test/browser/browser.toml"]
|
|
|
|
XPIDL_SOURCES += [
|
|
"nsIPrefBranch.idl",
|
|
"nsIPrefLocalizedString.idl",
|
|
"nsIPrefOverrideMap.idl",
|
|
"nsIPrefService.idl",
|
|
"nsIRelativeFilePref.idl",
|
|
]
|
|
|
|
XPIDL_MODULE = "pref"
|
|
|
|
pref_groups = [
|
|
"accessibility",
|
|
"alerts",
|
|
"apz",
|
|
"beacon",
|
|
"bidi",
|
|
"browser",
|
|
"channelclassifier",
|
|
"clipboard",
|
|
"content",
|
|
"converter",
|
|
"datareporting",
|
|
"device",
|
|
"devtools",
|
|
"docshell",
|
|
"dom",
|
|
"editor",
|
|
"extensions",
|
|
"fission",
|
|
"font",
|
|
"full_screen_api",
|
|
"general",
|
|
"geo",
|
|
"gfx",
|
|
"gl",
|
|
"html5",
|
|
"idle_period",
|
|
"image",
|
|
"intl",
|
|
"javascript",
|
|
"layers",
|
|
"layout",
|
|
"logging",
|
|
"mathml",
|
|
"media",
|
|
"memory",
|
|
"middlemouse",
|
|
"midi",
|
|
"mousewheel",
|
|
"mozilla",
|
|
"network",
|
|
"nglayout",
|
|
"page_load",
|
|
"pdfjs",
|
|
"permissions",
|
|
"places",
|
|
"plain_text",
|
|
"preferences",
|
|
"print",
|
|
"privacy",
|
|
"prompts",
|
|
"security",
|
|
"signon",
|
|
"slider",
|
|
"storage",
|
|
"svg",
|
|
"telemetry",
|
|
"test",
|
|
"threads",
|
|
"timer",
|
|
"toolkit",
|
|
"ui",
|
|
"urlclassifier",
|
|
"view_source",
|
|
"webgl",
|
|
"widget",
|
|
"zoom",
|
|
]
|
|
if CONFIG["OS_TARGET"] == "Android":
|
|
pref_groups += [
|
|
"android",
|
|
"consoleservice",
|
|
]
|
|
if CONFIG["FUZZING"]:
|
|
pref_groups += ["fuzzing"]
|
|
if CONFIG["MOZ_THUNDERBIRD"]:
|
|
pref_groups += [
|
|
"mail",
|
|
"mailnews",
|
|
]
|
|
pref_groups = tuple(sorted(pref_groups))
|
|
|
|
# Note: generate_static_pref_list.py relies on StaticPrefListAll.h being first.
|
|
gen_h = ["init/StaticPrefListAll.h"]
|
|
gen_h += ["StaticPrefsAll.h"]
|
|
gen_h += ["init/StaticPrefList_{}.h".format(pg) for pg in pref_groups]
|
|
gen_h += ["StaticPrefs_{}.h".format(pg) for pg in pref_groups]
|
|
|
|
gen_cpp = ["init/StaticPrefsCGetters.cpp"]
|
|
|
|
gen_rs = ["static_prefs.rs"]
|
|
|
|
EXPORTS.mozilla += [
|
|
"init/StaticPrefListBegin.h",
|
|
"init/StaticPrefListEnd.h",
|
|
"nsRelativeFilePref.h",
|
|
"Preferences.h",
|
|
"StaticPrefsBase.h",
|
|
]
|
|
EXPORTS.mozilla += sorted(["!" + g for g in gen_h])
|
|
|
|
UNIFIED_SOURCES += [
|
|
"Preferences.cpp",
|
|
"SharedPrefMap.cpp",
|
|
]
|
|
|
|
gen_all_tuple = tuple(gen_h + gen_cpp + gen_rs)
|
|
|
|
gen_inputs = ["init/StaticPrefList.yaml"]
|
|
if CONFIG["MOZ_THUNDERBIRD"]:
|
|
gen_inputs += ["/comm/mail/app/StaticPrefList.yaml"]
|
|
GeneratedFile(
|
|
*gen_all_tuple,
|
|
script="init/generate_static_pref_list.py",
|
|
entry_point="emit_code",
|
|
inputs=gen_inputs,
|
|
)
|
|
|
|
PYTHON_UNITTEST_MANIFESTS += [
|
|
"test/python.toml",
|
|
]
|
|
|
|
XPCOM_MANIFESTS += [
|
|
"components.conf",
|
|
]
|
|
|
|
SPHINX_TREES["/modules/libpref"] = "docs"
|
|
|
|
include("/ipc/chromium/chromium-config.mozbuild")
|
|
|
|
FINAL_LIBRARY = "xul"
|
|
|
|
DEFINES["OS_ARCH"] = CONFIG["OS_ARCH"]
|
|
DEFINES["MOZ_WIDGET_TOOLKIT"] = CONFIG["MOZ_WIDGET_TOOLKIT"]
|
|
|
|
if CONFIG["MOZ_SERVICES_SYNC"]:
|
|
DEFINES["MOZ_SERVICES_SYNC"] = True
|
|
|
|
if CONFIG["MOZ_WEBEXT_WEBIDL_ENABLED"]:
|
|
DEFINES["MOZ_WEBEXT_WEBIDL_ENABLED"] = True
|
|
|
|
if CONFIG["MOZ_ARTIFACT_BUILDS"]:
|
|
DEFINES["MOZ_ARTIFACT_BUILDS"] = True
|
|
|
|
if CONFIG["MOZ_WIDGET_TOOLKIT"] == "android":
|
|
if not CONFIG["MOZ_ANDROID_FAT_AAR_ARCHITECTURES"]:
|
|
FINAL_TARGET_PP_FILES[CONFIG["ANDROID_CPU_ARCH"]] += [
|
|
"greprefs.js",
|
|
]
|
|
else:
|
|
for arch in CONFIG["MOZ_ANDROID_FAT_AAR_ARCHITECTURES"]:
|
|
FINAL_TARGET_FILES[arch] += [
|
|
"!/dist/fat-aar/output/geckoview/{arch}/greprefs.js".format(arch=arch),
|
|
]
|
|
else:
|
|
FINAL_TARGET_PP_FILES += [
|
|
"greprefs.js",
|
|
]
|