Files
sousa-gecko/browser/components/preferences/tests/networking/head.js
T
Tim Giles 5dd395bfc5 Bug 2039933 - Rename the shared preferences test head.js to head-common.js r=akulyk
`head.js` is auto-loaded by browser-chrome for tests in the same
directory, which collides with its role as a helper file that
subdirectory suites pull in explicitly via `loadSubScript`. We move the
shared helpers to `head-common.js` and update all consumers.
`tests/head.js` remains as a thin shim that loads `head-common.js`,
preserving auto-loading for tests directly under `tests/`.

Differential Revision: https://phabricator.services.mozilla.com/D309388
2026-06-30 21:40:57 +00:00

16 lines
668 B
JavaScript

/* Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/ */
Services.scriptloader.loadSubScript(
"chrome://mochitests/content/browser/browser/components/preferences/tests/head-common.js",
this
);
// In the redesigned settings UI, connection/proxy controls and HTTPS-Only
// controls live in a "connectionSecurity" sub-pane of Privacy and security,
// and DNS-over-HTTPS controls live in a "dnsOverHttps" sub-pane of Privacy and security.
const CONNECTION_SECURITY_PREF_PANE = SRD_PREF_VALUE
? "paneConnectionSecurity"
: "panePrivacy";
const DOH_PREF_PANE = SRD_PREF_VALUE ? "paneDnsOverHttps" : "panePrivacy";