Bug 621835 - URL bar title does not represent the open search URI when selected from the open search menu [r=mfinkle]
authorVivien Nicolas <21@vingtetun.org>
Wed, 29 Dec 2010 16:39:37 +0100
changeset 67181 ae74a76b69131bc02f44376bc37ea3f4b7f2bf56
parent 67180 0fb93aaa30d52c29fe93949b589aeae6a9372130
child 67182 7c4466c19148c71ddf879cb77f3a43479d0ed5ab
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)
reviewersmfinkle
bugs621835
Bug 621835 - URL bar title does not represent the open search URI when selected from the open search menu [r=mfinkle]
mobile/chrome/content/browser-ui.js
--- a/mobile/chrome/content/browser-ui.js
+++ b/mobile/chrome/content/browser-ui.js
@@ -637,17 +637,20 @@ var BrowserUI = {
     Browser.hideSidebars();
     this.closeAutoComplete();
 
     // Make sure we're online before attempting to load
     Util.forceOnline();
 
     let engine = Services.search.getEngineByName(aName);
     let submission = engine.getSubmission(searchValue, null);
+    Browser.selectedBrowser.userTypedValue = submission.uri.spec;
     Browser.loadURI(submission.uri.spec, { postData: submission.postData });
+
+    this._titleChanged(Browser.selectedBrowser);
   },
 
   updateUIFocus: function _updateUIFocus() {
     if (Elements.contentShowing.getAttribute("disabled") == "true")
       Browser.selectedBrowser.messageManager.sendAsyncMessage("Browser:Blur", { });
   },
 
   updateStar: function() {