Bug 1801929 - Replace 'Total Cookie Protection' learn more link with support-link. r=pbz,mconley,settings-reviewers

Differential Revision: https://phabricator.services.mozilla.com/D167420
This commit is contained in:
Tim Giles 2023-01-25 18:56:13 +00:00
Родитель c355ac155c
Коммит 7586da80bd
4 изменённых файлов: 7 добавлений и 17 удалений

Просмотреть файл

@ -1851,9 +1851,6 @@ pref("media.gmp-provider.enabled", true);
// Enable Dynamic First-Party Isolation by default.
pref("network.cookie.cookieBehavior", 5 /* BEHAVIOR_REJECT_TRACKER_AND_PARTITION_FOREIGN */);
// Target URL for the learn more link of the TCP in standard mode section.
pref("privacy.restrict3rdpartystorage.preferences.learnMoreURLSuffix", "total-cookie-protection");
// Enable Dynamic First-Party Isolation in the private browsing mode.
pref("network.cookie.cookieBehavior.pbmode", 5 /* BEHAVIOR_REJECT_TRACKER_AND_PARTITION_FOREIGN */);

Просмотреть файл

@ -117,7 +117,12 @@
</hbox>
<description>
<html:span class="tail-with-learn-more" data-l10n-id="content-blocking-etp-standard-tcp-rollout-description"></html:span>
<label id="tcp-learn-more-link" class="learnMore" data-l10n-id="content-blocking-etp-standard-tcp-rollout-learn-more" is="text-link"/>
<html:a is="moz-support-link"
id="tcp-learn-more-link"
class="learnMore"
data-l10n-id="content-blocking-etp-standard-tcp-rollout-learn-more"
support-page="total-cookie-protection"
/>
</description>
</vbox>
<html:div class="content-blocking-warning info-box-container reload-tabs" hidden="true">

Просмотреть файл

@ -285,16 +285,6 @@ function setUpContentBlockingWarnings() {
}
function initTCPStandardSection() {
document
.getElementById("tcp-learn-more-link")
.setAttribute(
"href",
Services.urlFormatter.formatURLPref("app.support.baseURL") +
Services.prefs.getStringPref(
"privacy.restrict3rdpartystorage.preferences.learnMoreURLSuffix"
)
);
let cookieBehaviorPref = Preferences.get("network.cookie.cookieBehavior");
let updateTCPSectionVisibilityState = () => {
document.getElementById("etpStandardTCPBox").hidden =

Просмотреть файл

@ -14,9 +14,7 @@ const CAT_PREF = "browser.contentblocking.category";
const LEARN_MORE_URL =
Services.urlFormatter.formatURLPref("app.support.baseURL") +
Services.prefs.getStringPref(
"privacy.restrict3rdpartystorage.preferences.learnMoreURLSuffix"
);
"total-cookie-protection";
const {
BEHAVIOR_REJECT_TRACKER,