From 72b56e7a592a6793817e2a7479b08b6f2e334252 Mon Sep 17 00:00:00 2001 From: Abe Jellinek Date: Tue, 3 Dec 2024 15:35:13 -0500 Subject: [PATCH] Pass BrowsingContext to nsIFilePicker init Fixes #4892 --- chrome/content/zotero/modules/filePicker.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/modules/filePicker.mjs b/chrome/content/zotero/modules/filePicker.mjs index 8082047eb6..47f07568ec 100644 --- a/chrome/content/zotero/modules/filePicker.mjs +++ b/chrome/content/zotero/modules/filePicker.mjs @@ -48,7 +48,7 @@ export class FilePicker { * @param {Integer} mode - One of the mode constants, indicating the type of picker to create */ init(parentWindow, title, mode) { - this._fp.init(parentWindow, title, mode); + this._fp.init(parentWindow.browsingContext, title, mode); }; /**