Bug 704722 - Incorrect regexp in OpenSearch. r=squib,a=Standard8 RELEASE_BASE_20120127 SEAMONKEY_2_7b5_BUILD1 SEAMONKEY_2_7b5_RELEASE
authorMark Banner <bugzilla@standard8.plus.com>
Tue, 24 Jan 2012 22:31:54 +0000
changeset 9822 8044e1ef0c20
parent 9821 6540649063c7
child 9823 fdafb2bea3da
child 9826 5dcffe1800ad
child 9830 1c6ac0edc23e
child 10149 c04dffc4f9ea
push id331
push userbugzilla@standard8.plus.com
push date2012-01-24 22:34 +0000
Treeherderresults
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;
   },