From b2947aede0f09c3421c2274e4bf6091ae4228d5e Mon Sep 17 00:00:00 2001 From: Abe Jellinek Date: Fri, 14 Apr 2023 11:27:09 -0400 Subject: [PATCH] fx-compat: Fix attaching CookieSandbox to a browser --- chrome/content/zotero/xpcom/cookieSandbox.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/chrome/content/zotero/xpcom/cookieSandbox.js b/chrome/content/zotero/xpcom/cookieSandbox.js index 7b974e9304..6848681a9b 100755 --- a/chrome/content/zotero/xpcom/cookieSandbox.js +++ b/chrome/content/zotero/xpcom/cookieSandbox.js @@ -336,8 +336,7 @@ Zotero.CookieSandbox.Observer = new function() { } else { // try the browser try { - browser = notificationCallbacks.getInterface(Ci.nsIWebNavigation) - .QueryInterface(Ci.nsIDocShell).chromeEventHandler; + browser = notificationCallbacks.getInterface(Ci.nsILoadContext).topFrameElement; } catch(e) {} if(browser) { tested = true;