Bug 1574991 - Remove "In Browser Element" from about:cache.r=baku

Differential Revision: https://phabricator.services.mozilla.com/D70898
This commit is contained in:
MahakBansal 2020-04-14 16:45:22 +00:00
Родитель d67f3a91f3
Коммит a1891f468b
2 изменённых файлов: 1 добавлений и 12 удалений

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

@ -98,14 +98,6 @@ nsresult nsAboutCache::Channel::Init(nsIURI* aURI, nsILoadInfo* aLoadInfo) {
mBuffer.AppendLiteral( mBuffer.AppendLiteral(
"<label><input id='priv' type='checkbox'/> Private</label>\n" "<label><input id='priv' type='checkbox'/> Private</label>\n"
"<label><input id='anon' type='checkbox'/> Anonymous</label>\n"); "<label><input id='anon' type='checkbox'/> Anonymous</label>\n");
// Visit scoping by browseris not implemented for the old cache, simply don't
// add these controls. The inbrowser entries are already mixed in the
// default view anyway.
mBuffer.AppendLiteral(
"<label><input id='inbrowser' type='checkbox'/> In Browser "
"Element</label>\n");
mBuffer.AppendLiteral( mBuffer.AppendLiteral(
"<label><input id='submit' type='button' value='Update'/></label>\n"); "<label><input id='submit' type='button' value='Update'/></label>\n");

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

@ -25,7 +25,6 @@ addEventListener(
"DOMContentLoaded", "DOMContentLoaded",
function() { function() {
$("anon").checked = !!isAnon; $("anon").checked = !!isAnon;
$("inbrowser").checked = !!isInBrowser;
$("priv").checked = !!isPrivate; $("priv").checked = !!isPrivate;
}, },
false false
@ -38,9 +37,7 @@ function navigate() {
if ($("anon").checked) { if ($("anon").checked) {
context += "a,"; context += "a,";
} }
if ($("inbrowser").checked) {
context += "b,";
}
if ($("priv").checked) { if ($("priv").checked) {
context += "p,"; context += "p,";
} }