Bug 1589387 - Remove warning from about:networking page r=kershaw,fluent-reviewers

Differential Revision: https://phabricator.services.mozilla.com/D49431

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Valentin Gosu 2019-10-17 16:13:13 +00:00
Родитель 8ef17f5f9f
Коммит 9a71f8e114
5 изменённых файлов: 0 добавлений и 87 удалений

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

@ -1253,9 +1253,6 @@ pref("network.protocol-handler.external.le", false); // file
// to override this value.
pref("network.protocol-handler.expose-all", true);
// Warning for about:networking page
pref("network.warnOnAboutNetworking", false);
// Example: make IMAP an exposed protocol
// pref("network.protocol-handler.expose.imap", true);

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

@ -205,12 +205,6 @@ function init() {
}
gInited = true;
gDashboard.enableLogging = true;
if (Services.prefs.getBoolPref("network.warnOnAboutNetworking")) {
let div = document.getElementById("warning_message");
div.classList.add("active");
div.hidden = false;
document.getElementById("confpref").addEventListener("click", confirm);
}
requestAllNetworkingData();
@ -425,14 +419,6 @@ function stopLogging() {
updateLogFile();
}
function confirm() {
let div = document.getElementById("warning_message");
div.classList.remove("active");
div.hidden = true;
let warnBox = document.getElementById("warncheck");
Services.prefs.setBoolPref("network.warnOnAboutNetworking", warnBox.checked);
}
function show(button) {
let current_tab = document.querySelector(".active");
let category = button.getAttribute("id").substring("category-".length);

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

@ -15,18 +15,6 @@
<link rel="localization" href="toolkit/about/aboutNetworking.ftl"/>
</head>
<body id="body">
<div id="warning_message" class="warningBackground" hidden="true">
<div class="container">
<h1 class="title" data-l10n-id="warning"/>
<div class="toggle-container-with-text">
<input id="warncheck" type="checkbox" checked="yes" role="checkbox" />
<label for="warncheck" data-l10n-id="show-next-time-checkbox"/>
</div>
<div>
<button id="confpref" autofocus="autofocus" data-l10n-id="ok"/>
</div>
</div>
</div>
<div id="categories">
<div class="category" selected="true" id="category-http">
<span class="category-name" data-l10n-id="http"/>

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

@ -3,9 +3,6 @@
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
title = About Networking
warning = This is very experimental. Do not use without adult supervision.
show-next-time-checkbox = Show this warning next time
ok = OK
http = HTTP
sockets = Sockets
dns = DNS

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

@ -48,61 +48,6 @@ body {
border-top-color: rgba(255,255,255,0.15);
}
/** Warning container **/
/* XXX: a lot of this is duplicated from info-pages.css since that stylesheet
is incompatible with this type of layout */
.warningBackground:not([hidden]) {
display: flex;
}
.warningBackground {
flex-direction: column;
box-sizing: border-box;
min-height: 100vh;
align-items: center;
justify-content: center;
width: 100%;
height: 100%;
z-index: 10;
top: 0;
left: 0;
position: fixed;
background: var(--in-content-page-background);
}
.title {
position: relative;
border-bottom: 1px solid var(--in-content-box-border-color);
margin-bottom: 1em;
padding-bottom: 0.5em;
}
.title::before {
content: "";
left: -2.3em;
top: 0;
position: absolute;
display: block;
width: 1.6em;
height: 1.6em;
background: url("chrome://global/skin/icons/warning.svg") no-repeat left center;
background-size: 1.6em;
-moz-context-properties: fill;
fill: #fcd100;
}
.title:dir(rtl)::before {
left: auto;
right: -2.3em;
}
.warningBackground button {
margin-top: 1em;
margin-left: 0;
min-width: 100px;
}
/** Content area **/
.main-content {