From 45e681431bfd6b77bfaf8f55ce87f04fedb4a475 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Tue, 3 Dec 2024 05:09:55 -0500 Subject: [PATCH] fx128: Remove uses of `nsIDOMChromeWindow` https://bugzilla.mozilla.org/show_bug.cgi?id=1522052 --- chrome/content/zotero/elements/textLink.js | 2 +- chrome/content/zotero/zoteroPane.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/chrome/content/zotero/elements/textLink.js b/chrome/content/zotero/elements/textLink.js index 86d4831a25..90df930011 100644 --- a/chrome/content/zotero/elements/textLink.js +++ b/chrome/content/zotero/elements/textLink.js @@ -82,7 +82,7 @@ // otherwise, fall back to opening the anchor directly var win = window; - if (window instanceof Components.interfaces.nsIDOMChromeWindow) { + if (win.isChromeWindow) { while (win.opener && !win.opener.closed) win = win.opener; } diff --git a/chrome/content/zotero/zoteroPane.js b/chrome/content/zotero/zoteroPane.js index 46b1b58bb6..811f31cde4 100644 --- a/chrome/content/zotero/zoteroPane.js +++ b/chrome/content/zotero/zoteroPane.js @@ -3020,7 +3020,7 @@ var ZoteroPane = new function() } // Restore window if it's in the dock - if (window.windowState == Components.interfaces.nsIDOMChromeWindow.STATE_MINIMIZED) { + if (window.windowState == window.STATE_MINIMIZED) { window.restore(); }