diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:13:27 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:13:27 +0000 |
commit | 40a355a42d4a9444dc753c04c6608dade2f06a23 (patch) | |
tree | 871fc667d2de662f171103ce5ec067014ef85e61 /browser/components/migration/MigrationWizardParent.sys.mjs | |
parent | Adding upstream version 124.0.1. (diff) | |
download | firefox-40a355a42d4a9444dc753c04c6608dade2f06a23.tar.xz firefox-40a355a42d4a9444dc753c04c6608dade2f06a23.zip |
Adding upstream version 125.0.1.upstream/125.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'browser/components/migration/MigrationWizardParent.sys.mjs')
-rw-r--r-- | browser/components/migration/MigrationWizardParent.sys.mjs | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/browser/components/migration/MigrationWizardParent.sys.mjs b/browser/components/migration/MigrationWizardParent.sys.mjs index deb0e89007..dd9ef3b85c 100644 --- a/browser/components/migration/MigrationWizardParent.sys.mjs +++ b/browser/components/migration/MigrationWizardParent.sys.mjs @@ -219,7 +219,11 @@ export class MigrationWizardParent extends JSWindowActorParent { let { result, path } = await new Promise(resolve => { let fp = Cc["@mozilla.org/filepicker;1"].createInstance(Ci.nsIFilePicker); - fp.init(window, filePickerConfig.title, Ci.nsIFilePicker.modeOpen); + fp.init( + window.browsingContext, + filePickerConfig.title, + Ci.nsIFilePicker.modeOpen + ); for (let filter of filePickerConfig.filters) { fp.appendFilter(filter.title, filter.extensionPattern); @@ -299,7 +303,11 @@ export class MigrationWizardParent extends JSWindowActorParent { let { result, path } = await new Promise(resolve => { let fp = Cc["@mozilla.org/filepicker;1"].createInstance(Ci.nsIFilePicker); - fp.init(window, filePickerConfig.title, Ci.nsIFilePicker.modeOpen); + fp.init( + window.browsingContext, + filePickerConfig.title, + Ci.nsIFilePicker.modeOpen + ); for (let filter of filePickerConfig.filters) { fp.appendFilter(filter.title, filter.extensionPattern); |