mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 898881 - Enable OpenSearch auto discovery for private windows; r=jdm
This commit is contained in:
parent
e5fd2f9539
commit
0844f71948
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user