summaryrefslogtreecommitdiffstats
path: root/browser/components/migration/MigrationWizardParent.sys.mjs
diff options
context:
space:
mode:
Diffstat (limited to 'browser/components/migration/MigrationWizardParent.sys.mjs')
-rw-r--r--browser/components/migration/MigrationWizardParent.sys.mjs12
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);