fx-compat: Fix attaching CookieSandbox to a browser

This commit is contained in:
Abe Jellinek 2023-04-14 11:27:09 -04:00
parent 667058204d
commit b2947aede0

View file

@ -336,8 +336,7 @@ Zotero.CookieSandbox.Observer = new function() {
} else { } else {
// try the browser // try the browser
try { try {
browser = notificationCallbacks.getInterface(Ci.nsIWebNavigation) browser = notificationCallbacks.getInterface(Ci.nsILoadContext).topFrameElement;
.QueryInterface(Ci.nsIDocShell).chromeEventHandler;
} catch(e) {} } catch(e) {}
if(browser) { if(browser) {
tested = true; tested = true;