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 11311 8044e1ef0c2051aeeff0079f0d0a1b7ca8781256
parent 11310 6540649063c7e2df44f740b4faaba998e8e4347d
child 11312 fdafb2bea3dabeb2050c8806a377b48bb7ba89f1
child 11315 5dcffe1800ad3bac74f271b7586643095bc6eedd
child 11319 1c6ac0edc23e156eb0e4c256c393e6f5b3685da6
child 11468 c04dffc4f9eacff45ccc785b6806f87bf3cc8072
push id6
push userbienvenu@nventure.com
push dateWed, 16 May 2012 22:24:51 +0000
treeherdertry-comm-central@ac395aea3008 [default view] [failures only]
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;
   },