Pass BrowsingContext to nsIFilePicker init

Fixes #4892
This commit is contained in:
Abe Jellinek 2024-12-03 15:35:13 -05:00 • committed by Dan Stillman
parent f28fa763cc
commit 72b56e7a59

View file

@ -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);
};
/**