mirror of
https://github.com/zotero/zotero.git
synced 2026-09-28 01:31:40 +00:00
CookieSandbox: Fix XHR interface check
Actually broken since fx115.
This commit is contained in:
parent
e80b5787fe
commit
4d90fe72bd
1 changed files with 7 additions and 3 deletions
|
|
@ -343,11 +343,15 @@ Zotero.CookieSandbox.Observer = new function() {
|
|||
// Zotero.debug(`CookieSandbox: Found the browser via doc of load group for ${channelURI}`, 5);
|
||||
trackedBy = this.trackedBrowsers.get(browser);
|
||||
}
|
||||
else if (notificationCallbacks instanceof XMLHttpRequest) {
|
||||
// Zotero.debug(`CookieSandbox: Found the browser via XHR for ${channelURI}`, 5);
|
||||
tested = true;
|
||||
}
|
||||
else {
|
||||
// try getting as an XHR or nsIWBP
|
||||
// try getting as an nsIWBP
|
||||
try {
|
||||
notificationCallbacks.QueryInterface(Components.interfaces.nsIXMLHttpRequest);
|
||||
// Zotero.debug(`CookieSandbox: Found the browser via XHR or nsIWBP for ${channelURI}`, 5);
|
||||
notificationCallbacks.QueryInterface(Components.interfaces.nsIWebBrowserPersist);
|
||||
// Zotero.debug(`CookieSandbox: Found the browser via nsIWBP for ${channelURI}`, 5);
|
||||
tested = true;
|
||||
}
|
||||
catch (e) {}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue