Bug 551516 - Search button submission uses the wrong loadURI [r=stechz]
authorMark Finkle <mfinkle@mozilla.com>
Wed, 10 Mar 2010 14:19:05 -0500
changeset 66043 32eb180f4c06eafecb85702a0295dc4cd8e01745
parent 66042 d27b1dd59d3a18e4c0170ddd0a6c31331098d8a4
child 66044 42699980b3b85653b13e1c541fbb68c0e92bb897
push id1
push userroot
push dateTue, 26 Apr 2011 22:38:44 +0000
treeherdermozilla-beta@bfdb6e623a36 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersstechz
bugs551516
Bug 551516 - Search button submission uses the wrong loadURI [r=stechz]
mobile/chrome/content/browser-ui.js
--- a/mobile/chrome/content/browser-ui.js
+++ b/mobile/chrome/content/browser-ui.js
@@ -551,18 +551,19 @@ var BrowserUI = {
 
     // Give the new page lots of room
     Browser.hideSidebars();
     this.closeAutoComplete(false);
 
     // Make sure we're online before attempting to load
     Util.forceOnline();
 
-    var submission = button.engine.getSubmission(this._edit.value, null);
-    getBrowser().loadURI(submission.uri.spec, null, submission.postData, false);
+    let submission = button.engine.getSubmission(this._edit.value, null);
+    let flags = Ci.nsIWebNavigation.LOAD_FLAGS_NONE;
+    getBrowser().loadURIWithFlags(submission.uri.spec, flags, null, null, submission.postData);
   },
 
   updateStar : function() {
     if (PlacesUtils.getMostRecentBookmarkForURI(Browser.selectedBrowser.currentURI) != -1)
       this.starButton.setAttribute("starred", "true");
     else
       this.starButton.removeAttribute("starred");
   },