зеркало из https://github.com/mozilla/pjs.git
Backout of changesets c866e73f3209 and baff7b7b32bc because of sicking's push-and-run bustage. a=backout
This commit is contained in:
Родитель
cfa304e280
Коммит
4c9173b86f
|
@ -2604,6 +2604,11 @@ function BrowserOnClick(event) {
|
|||
);
|
||||
}
|
||||
}
|
||||
else if (/^about:privatebrowsing/.test(errorDoc.documentURI)) {
|
||||
if (ot == errorDoc.getElementById("startPrivateBrowsing")) {
|
||||
gPrivateBrowsingUI.toggleMode();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -114,10 +114,6 @@
|
|||
if (moreInfoLink)
|
||||
moreInfoLink.setAttribute("href", moreInfoURL + "private-browsing");
|
||||
}, false);
|
||||
|
||||
function togglePrivateBrowsing() {
|
||||
mainWindow.gPrivateBrowsingUI.toggleMode();
|
||||
}
|
||||
]]></script>
|
||||
</head>
|
||||
|
||||
|
@ -149,10 +145,9 @@
|
|||
|
||||
<!-- Start Private Browsing -->
|
||||
<div id="startPrivateBrowsingDesc" class="showNormal">
|
||||
<button xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
||||
id="startPrivateBrowsing" label="&privatebrowsingpage.startPrivateBrowsing.label;"
|
||||
<button id="startPrivateBrowsing"
|
||||
accesskey="&privatebrowsingpage.startPrivateBrowsing.accesskey;"
|
||||
oncommand="togglePrivateBrowsing();"/>
|
||||
>&privatebrowsingpage.startPrivateBrowsing.label;</button>
|
||||
</div>
|
||||
|
||||
<!-- Footer -->
|
||||
|
|
|
@ -170,12 +170,12 @@ be temporary, and you can try again later.</li>
|
|||
<!ENTITY securityOverride.getMeOutOfHereButton "Get me out of here!">
|
||||
<!ENTITY securityOverride.exceptionButtonLabel "Add Exception…">
|
||||
|
||||
<!-- LOCALIZATION NOTE (securityOverride.warningContent) - Do not translate the
|
||||
contents of the <button> tags. It uses strings already defined above. The
|
||||
button is included here (instead of netError.xhtml) because it exposes
|
||||
functionality specific to firefox. -->
|
||||
<!-- LOCALIZATION NOTE (securityOverride.warningText) - Do not translate the
|
||||
contents of the <xul:button> tags. The only language content is the label= field,
|
||||
which uses strings already defined above. The button is included here (instead of
|
||||
netError.xhtml) because it exposes functionality specific to firefox. -->
|
||||
|
||||
<!ENTITY securityOverride.warningContent "
|
||||
<!ENTITY securityOverride.warningText "
|
||||
<p>You should not add an exception if you are using an internet connection that you do not trust completely or if you are not used to seeing a warning for this server.</p>
|
||||
|
||||
<button id='getMeOutOfHereButton'>&securityOverride.getMeOutOfHereButton;</button>
|
||||
|
|
|
@ -294,7 +294,6 @@ class Automation(object):
|
|||
# Open database and create table
|
||||
permDB = sqlite3.connect(os.path.join(profileDir, "permissions.sqlite"))
|
||||
cursor = permDB.cursor();
|
||||
// SQL copied from nsPermissionManager.cpp
|
||||
cursor.execute("""CREATE TABLE moz_hosts (
|
||||
id INTEGER PRIMARY KEY,
|
||||
host TEXT,
|
||||
|
|
|
@ -369,7 +369,7 @@
|
|||
error types. -->
|
||||
<div id="securityOverrideDiv">
|
||||
<a id="securityOverrideLink" href="javascript:showSecuritySection();" >&securityOverride.linkText;</a>
|
||||
<div id="securityOverrideContent" style="display: none;">&securityOverride.warningContent;</div>
|
||||
<div id="securityOverrideContent" style="display: none;">&securityOverride.warningText;</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
should go into netError.dtd -->
|
||||
|
||||
<!ENTITY securityOverride.linkText "Or you can add an exception…">
|
||||
<!ENTITY securityOverride.warningContent "
|
||||
<!ENTITY securityOverride.warningText "
|
||||
<p>You should not add an exception if you are using an internet connection that you do not trust completely or if you are not used to seeing a warning for this server.</p>
|
||||
<p>If you still wish to add an exception for this site, you can do so in your advanced encryption settings.</p>
|
||||
">
|
||||
|
|
|
@ -343,8 +343,6 @@ nsPermissionManager::CreateTable()
|
|||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
// create the table
|
||||
// SQL also lives in automation.py.in. If you change this SQL change that
|
||||
// one too.
|
||||
return mDBConn->ExecuteSimpleSQL(NS_LITERAL_CSTRING(
|
||||
"CREATE TABLE moz_hosts ("
|
||||
" id INTEGER PRIMARY KEY"
|
||||
|
|
Загрузка…
Ссылка в новой задаче