Bug 1073776 - "Tapping on urlbar after performing search shows URL, not search term" [r=margaret.leibovic]
authorWes Johnston <wjohnston@mozilla.com>
Wed, 01 Oct 2014 14:15:00 -0700
changeset 208629 497e4c92e6800e83c0015bbc84f619da9cb19751
parent 208628 c3793a1dd33b2216e4da54af44d0e7ead0136f1a
child 208630 4b7e1497fbcb1ec4e195893242d8588dab695c40
push id1
push userroot
push dateMon, 20 Oct 2014 17:29:22 +0000
reviewersmargaret
bugs1073776
milestone35.0a1
Bug 1073776 - "Tapping on urlbar after performing search shows URL, not search term" [r=margaret.leibovic]
mobile/android/chrome/content/browser.js
--- a/mobile/android/chrome/content/browser.js
+++ b/mobile/android/chrome/content/browser.js
@@ -1624,17 +1624,17 @@ var BrowserApp = {
         this._handleTabClosed(this.getTabForId(data.tabId), data.showUndoToast);
         break;
       }
 
       case "keyword-search":
         // This event refers to a search via the URL bar, not a bookmarks
         // keyword search. Note that this code assumes that the user can only
         // perform a keyword search on the selected tab.
-        this.isSearch = true;
+        this.selectedTab.isSearch = true;
 
         // Don't store queries in private browsing mode.
         let isPrivate = PrivateBrowsingUtils.isBrowserPrivate(this.selectedTab.browser);
         let query = isPrivate ? "" : aData;
 
         let engine = aSubject.QueryInterface(Ci.nsISearchEngine);
         Messaging.sendRequest({
           type: "Search:Keyword",