Bug 1215948 - Followup, whitelist "WNSSCX" param too. r=trivial
authorJustin Dolske <dolske@mozilla.com>
Mon, 30 Nov 2015 16:57:24 -0800
changeset 308947 7bc32b1953a19e17cec6257a054bcbc3dcaf76d2
parent 308946 eadb3ad94e0f4a3b642280919658a8c8ed4f4652
child 308948 bec055709c6a342aedfba9e1e70380301a7ed5e4
push id5513
push userraliiev@mozilla.com
push dateMon, 25 Jan 2016 13:55:34 +0000
treeherdermozilla-beta@5ee97dd05b5c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstrivial
bugs1215948
milestone45.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 1215948 - Followup, whitelist "WNSSCX" param too. r=trivial
browser/components/nsBrowserContentHandler.js
--- a/browser/components/nsBrowserContentHandler.js
+++ b/browser/components/nsBrowserContentHandler.js
@@ -783,18 +783,18 @@ nsDefaultCommandLineHandler.prototype = 
             var url = uri.QueryInterface(Components.interfaces.nsIURL);
             var params = new URLSearchParams(url.query);
             // We don't want to rewrite all Bing URLs coming from external apps. Look
             // for the magic URL parm that's present in searches from the task bar.
             // * Typed searches use "form=WNSGPH"
             // * Cortana voice searches use "FORM=WNSBOX" or direct results, or "FORM=WNSFC2"
             //   for "see more results on Bing.com")
             // * Cortana voice searches started from "Hey, Cortana" use "form=WNSHCO"
-            //   or "form=WNSSSV"
-            var allowedParams = ["WNSGPH", "WNSBOX", "WNSFC2", "WNSHCO", "WNSSSV"];
+            //   or "form=WNSSSV" or "form=WNSSCX"
+            var allowedParams = ["WNSGPH", "WNSBOX", "WNSFC2", "WNSHCO", "WNSSCX", "WNSSSV"];
             var formParam = params.get("form");
             if (!formParam) {
               formParam = params.get("FORM");
             }
             if (allowedParams.indexOf(formParam) != -1) {
               var term = params.get("q");
               var ss = Components.classes["@mozilla.org/browser/search-service;1"]
                                  .getService(nsIBrowserSearchService);