Backout bug 800669.
authorJosh Matthews <josh@joshmatthews.net>
Thu, 11 Oct 2012 22:21:43 -0400
changeset 110039 6db2ba78beb85df414f8c85e2b04709882a1ad5f
parent 110038 645c3f9045fc68690a7c776a47a7ccb801865a64
child 110040 038ef23a04cda664bc09cc9f61c4cfcd53f7ec98
push id16334
push userjosh@joshmatthews.net
push dateFri, 12 Oct 2012 02:23:41 +0000
treeherdermozilla-inbound@038ef23a04cd [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs800669
milestone19.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Backout bug 800669.
browser/components/search/content/search.xml
--- a/browser/components/search/content/search.xml
+++ b/browser/components/search/content/search.xml
@@ -431,17 +431,17 @@
           }
           else {
             var newTabPref = textBox._prefBranch.getBoolPref("browser.search.openintab");
             if ((aEvent && aEvent.altKey) ^ newTabPref)
               where = "tab";
           }
 
           // Save the current value in the form history
-          if (textValue && !PrivateBrowsingUtils.isWindowPrivate(window)) {
+          if (textValue && !gPrivateBrowsingUI.privateWindow) {
             try {
               textBox._formHistSvc.addEntry(textBox.getAttribute("autocompletesearchparam"),
                                             textValue);
             } catch (ex) {
               Components.utils.reportError("Saving search to form history failed: " + ex);
             }
           }