Bug 1676074 - Part 1: Add a learn more link into the "Cross-site cookies" permission header description. r=johannh,fluent-reviewers,desktop-theme-reviewers,harry

Differential Revision: https://phabricator.services.mozilla.com/D112044
This commit is contained in:
Tim Huang 2021-04-15 09:27:26 +00:00
Родитель 5d877b47b1
Коммит 695ae2a516
4 изменённых файлов: 16 добавлений и 2 удалений

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

@ -14,6 +14,12 @@ var gPermissionPanel = {
if (!this._popupInitialized) {
let wrapper = document.getElementById("template-permission-popup");
wrapper.replaceWith(wrapper.content);
let baseURL = Services.urlFormatter.formatURLPref("app.support.baseURL");
document.getElementById(
"permission-popup-storage-access-permission-learn-more"
).href = baseURL + "site-information-third-party-access";
this._popupInitialized = true;
}
},

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

@ -34,6 +34,10 @@
<label data-l10n-id="identity-permissions-storage-access-header" class="permission-popup-permission-header-label"/>
</hbox>
<description id="permission-popup-storage-access-permission-list-hint" data-l10n-id="identity-permissions-storage-access-hint"></description>
<label id="permission-popup-storage-access-permission-learn-more"
is="text-link"
data-l10n-id="identity-permissions-storage-access-learn-more">
</label>
</vbox>
</vbox>
</vbox>

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

@ -317,6 +317,7 @@ identity-https-only-info-no-upgrade = Unable to upgrade connection from HTTP.
identity-permissions-storage-access-header = Cross-site cookies
identity-permissions-storage-access-hint = These parties can use cross-site cookies and site data while you are on this site.
identity-permissions-storage-access-learn-more = Learn more
identity-permissions-reload-hint = You may need to reload the page for changes to apply.
identity-clear-site-data =

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

@ -788,10 +788,13 @@ description#identity-popup-content-verifier,
#permission-popup-storage-access-permission-list-hint {
margin-top: 0.25em;
font-size: 0.85em;
color: var(--panel-description-color);
}
#permission-popup-storage-access-permission-list-hint,
#permission-popup-storage-access-permission-learn-more {
/* Matches offset for items - 3px margin + 16px icon + 10px margin */
margin-inline-start: calc(3px + 16px + 10px);
color: var(--panel-description-color);
}
.protections-popup-category-icon,