Bug 898881 - Enable OpenSearch auto discovery for private windows; r=jdm

This commit is contained in:
Ehsan Akhgari 2013-07-30 13:12:16 -04:00
parent e5fd2f9539
commit 0844f71948

View File

@ -3011,8 +3011,7 @@ const DOMLinkHandler = {
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;