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
parent d67f3a91f3
commit a1891f468b
2 changed files with 1 additions and 12 deletions

View File

@ -98,14 +98,6 @@ nsresult nsAboutCache::Channel::Init(nsIURI* aURI, nsILoadInfo* aLoadInfo) {
mBuffer.AppendLiteral(
"<label><input id='priv' type='checkbox'/> Private</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(
"<label><input id='submit' type='button' value='Update'/></label>\n");

View File

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