Bug 1522508 - Properly display an extension result on the QuantumBar. r=dao
authorMark Banner <standard8@mozilla.com>
Thu, 28 Feb 2019 09:25:22 +0000
changeset 519590 ff76466ee236c1d23bed762eb5de658db038147e
parent 519589 c944e14b8944735a857b9c9f8a3e1213f3383b56
child 519591 bacf3a98194bc506c75c437ed23e64e97b2c5e0f
push id10862
push userffxbld-merge
push dateMon, 11 Mar 2019 13:01:11 +0000
treeherdermozilla-beta@a2e7f5c935da [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdao
bugs1522508
milestone67.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
Bug 1522508 - Properly display an extension result on the QuantumBar. r=dao Differential Revision: https://phabricator.services.mozilla.com/D21005
browser/components/urlbar/UrlbarView.jsm
--- a/browser/components/urlbar/UrlbarView.jsm
+++ b/browser/components/urlbar/UrlbarView.jsm
@@ -464,16 +464,19 @@ class UrlbarView {
         setAction(bundle.formatStringFromName("searchWithEngine",
                                               [result.payload.engine], 1));
         break;
       case UrlbarUtils.RESULT_TYPE.KEYWORD:
         if (result.payload.input.trim() == result.payload.keyword) {
           setAction(bundle.GetStringFromName("visit"));
         }
         break;
+      case UrlbarUtils.RESULT_TYPE.OMNIBOX:
+        setAction(result.payload.content);
+        break;
       default:
         if (result.heuristic) {
           setAction(bundle.GetStringFromName("visit"));
         } else {
           setURL();
         }
         break;
     }