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 8044e1ef0c2051aeeff0079f0d0a1b7ca8781256
parent 9821 6540649063c7e2df44f740b4faaba998e8e4347d
child 9823 fdafb2bea3dabeb2050c8806a377b48bb7ba89f1
child 9826 5dcffe1800ad3bac74f271b7586643095bc6eedd
child 9830 1c6ac0edc23e156eb0e4c256c393e6f5b3685da6
child 10149 c04dffc4f9eacff45ccc785b6806f87bf3cc8072
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;
   },