Backout bug 800669.
authorJosh Matthews <josh@joshmatthews.net>
Thu, 11 Oct 2012 22:21:43 -0400
changeset 110173 6db2ba78beb85df414f8c85e2b04709882a1ad5f
parent 110172 645c3f9045fc68690a7c776a47a7ccb801865a64
child 110174 038ef23a04cda664bc09cc9f61c4cfcd53f7ec98
push id93
push usernmatsakis@mozilla.com
push dateWed, 31 Oct 2012 21:26:57 +0000
bugs800669
milestone19.0a1
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);
             }
           }