From c425f71ac42418d384acb130557e1da18753bcbe Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Mon, 17 Jul 2023 06:39:25 -0400 Subject: [PATCH] fx-compat: Fix error passing cookieSandbox to Zotero.HTTP.request() https://groups.google.com/g/zotero-dev/c/UgP_kZvrEjA/m/KjimYREGAgAJ getInterface() seems to exist on XHR and nsIWBP without QIing to nsIInterfaceRequestor, and XHR no longer has QueryInterface(). --- chrome/content/zotero/xpcom/cookieSandbox.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/cookieSandbox.js b/chrome/content/zotero/xpcom/cookieSandbox.js index 6848681a9b..37739143fc 100755 --- a/chrome/content/zotero/xpcom/cookieSandbox.js +++ b/chrome/content/zotero/xpcom/cookieSandbox.js @@ -164,7 +164,7 @@ Zotero.CookieSandbox.prototype = { * @param {nsIInterfaceRequestor} ir */ "attachToInterfaceRequestor": function(ir) { - Zotero.CookieSandbox.Observer.trackedInterfaceRequestors.push(Cu.getWeakReference(ir.QueryInterface(Ci.nsIInterfaceRequestor))); + Zotero.CookieSandbox.Observer.trackedInterfaceRequestors.push(Cu.getWeakReference(ir)); Zotero.CookieSandbox.Observer.trackedInterfaceRequestorSandboxes.push(this); },