From ae9d0e0ff2d6ebead6ff148b838acb84c7087651 Mon Sep 17 00:00:00 2001 From: Bobby Holley Date: Fri, 20 Aug 2010 23:42:24 -0400 Subject: [PATCH] Backout of changesets c866e73f3209 and baff7b7b32bc because of sicking's push-and-run bustage. a=backout --- browser/base/content/browser.js | 5 +++++ .../privatebrowsing/content/aboutPrivateBrowsing.xhtml | 9 ++------- browser/locales/en-US/chrome/overrides/netError.dtd | 10 +++++----- build/automation.py.in | 1 - docshell/resources/content/netError.xhtml | 2 +- dom/locales/en-US/chrome/netErrorApp.dtd | 2 +- extensions/cookie/nsPermissionManager.cpp | 2 -- 7 files changed, 14 insertions(+), 17 deletions(-) diff --git a/browser/base/content/browser.js b/browser/base/content/browser.js index 32b386c4df1..a215dfe743d 100644 --- a/browser/base/content/browser.js +++ b/browser/base/content/browser.js @@ -2604,6 +2604,11 @@ function BrowserOnClick(event) { ); } } + else if (/^about:privatebrowsing/.test(errorDoc.documentURI)) { + if (ot == errorDoc.getElementById("startPrivateBrowsing")) { + gPrivateBrowsingUI.toggleMode(); + } + } } /** diff --git a/browser/components/privatebrowsing/content/aboutPrivateBrowsing.xhtml b/browser/components/privatebrowsing/content/aboutPrivateBrowsing.xhtml index 8319c5afeea..a1ff0f436d5 100644 --- a/browser/components/privatebrowsing/content/aboutPrivateBrowsing.xhtml +++ b/browser/components/privatebrowsing/content/aboutPrivateBrowsing.xhtml @@ -114,10 +114,6 @@ if (moreInfoLink) moreInfoLink.setAttribute("href", moreInfoURL + "private-browsing"); }, false); - - function togglePrivateBrowsing() { - mainWindow.gPrivateBrowsingUI.toggleMode(); - } ]]> @@ -149,10 +145,9 @@
-
diff --git a/browser/locales/en-US/chrome/overrides/netError.dtd b/browser/locales/en-US/chrome/overrides/netError.dtd index b31fb40e196..828d37c7113 100644 --- a/browser/locales/en-US/chrome/overrides/netError.dtd +++ b/browser/locales/en-US/chrome/overrides/netError.dtd @@ -170,12 +170,12 @@ be temporary, and you can try again later. - + -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.

diff --git a/build/automation.py.in b/build/automation.py.in index 2bdb438250c..49ad395b965 100644 --- a/build/automation.py.in +++ b/build/automation.py.in @@ -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, diff --git a/docshell/resources/content/netError.xhtml b/docshell/resources/content/netError.xhtml index de0841abe01..de80ce9dcae 100644 --- a/docshell/resources/content/netError.xhtml +++ b/docshell/resources/content/netError.xhtml @@ -369,7 +369,7 @@ error types. -->
&securityOverride.linkText; - +
diff --git a/dom/locales/en-US/chrome/netErrorApp.dtd b/dom/locales/en-US/chrome/netErrorApp.dtd index f05fa1d8645..548894afa84 100644 --- a/dom/locales/en-US/chrome/netErrorApp.dtd +++ b/dom/locales/en-US/chrome/netErrorApp.dtd @@ -3,7 +3,7 @@ should go into netError.dtd --> -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.

If you still wish to add an exception for this site, you can do so in your advanced encryption settings.

"> diff --git a/extensions/cookie/nsPermissionManager.cpp b/extensions/cookie/nsPermissionManager.cpp index 23f0ec3f4dd..3005527b9b4 100644 --- a/extensions/cookie/nsPermissionManager.cpp +++ b/extensions/cookie/nsPermissionManager.cpp @@ -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"