Bug 898881 - Enable OpenSearch auto discovery for private windows; r=jdm
authorEhsan Akhgari <ehsan@mozilla.com>
Tue, 30 Jul 2013 13:12:16 -0400
changeset 152864 ded8c833968689d3855ee6873555796daf48f013
parent 152863 aae57b03093a953e298d079e6095ef7d1df3386b
child 152865 1a0e01422cb3a5e8eeab911957990e5ee2464915
push id2859
push userakeybl@mozilla.com
push dateMon, 16 Sep 2013 19:14:59 +0000
treeherdermozilla-beta@87d3c51cd2bf [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjdm
bugs898881
milestone25.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 898881 - Enable OpenSearch auto discovery for private windows; r=jdm
browser/base/content/browser.js
--- a/browser/base/content/browser.js
+++ b/browser/base/content/browser.js
@@ -3006,18 +3006,17 @@ const DOMLinkHandler = {
           }
           break;
         case "search":
           if (!searchAdded) {
             var type = link.type && link.type.toLowerCase();
             type = type.replace(/^\s+|\s*(?:;.*)?$/g, "");
 
             if (type == "application/opensearchdescription+xml" && link.title &&
-                /^(?:https?|ftp):/i.test(link.href) &&
-                !PrivateBrowsingUtils.isWindowPrivate(window)) {
+                /^(?:https?|ftp):/i.test(link.href)) {
               var engine = { title: link.title, href: link.href };
               BrowserSearch.addEngine(engine, link.ownerDocument);
               searchAdded = true;
             }
           }
           break;
       }
     }