Bug 704722 - Incorrect regexp in OpenSearch. r=squib
authorMark Banner <bugzilla@standard8.plus.com>
Tue, 24 Jan 2012 22:31:54 +0000
changeset 9267 ec4b5babe566
parent 9266 bf5a281dec5c
child 9268 02545f6f91d8
push id7094
push userbugzilla@standard8.plus.com
push date2012-01-24 22:32 +0000
treeherdercomm-central@ec4b5babe566 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssquib
bugs704722
Bug 704722 - Incorrect regexp in OpenSearch. r=squib
mail/base/content/webSearchTab.js
--- a/mail/base/content/webSearchTab.js
+++ b/mail/base/content/webSearchTab.js
@@ -240,17 +240,17 @@ let webSearchTabType = {
     aTab.browser.loadURIWithFlags(submission.uri.spec, null, null, null,
                                   submission.postData);
   },
 
   _isInEngine: function(aEngine, aPreUri, aPostUri) {
     switch (aEngine.name) {
       case "Google":
         return aPreUri.host == aPostUri.host &&
-               !/^\/url?/.test(aPostUri.path);
+               /^\/search\?/.test(aPostUri.path);
       case "Yahoo":
         return /search\.yahoo\.com$/.test(aPostUri.host) &&
                !/^\/r\//.test(aPostUri.path);
     }
 
     return aPreUri.host == aPostUri.host;
   },