Bug 704722 - Incorrect regexp in OpenSearch. r=squib,a=Standard8
authorMark Banner <bugzilla@standard8.plus.com>
Tue, 24 Jan 2012 22:31:54 +0000
changeset 10127 265bf7f9a16891b3693c2b0649efbdaf6eaebe0b
parent 10126 c14dcbbdb4b21344d38aeada7b3750a597c1da99
child 10128 de5589a5f7fbde02d128fce859bdc6b0e5e84277
push idunknown
push userunknown
push dateunknown
reviewerssquib, Standard8
bugs704722
Bug 704722 - Incorrect regexp in OpenSearch. r=squib,a=Standard8
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;
   },