summaryrefslogtreecommitdiffstats
path: root/browser/components/migration/SafariProfileMigrator.sys.mjs
diff options
context:
space:
mode:
Diffstat (limited to 'browser/components/migration/SafariProfileMigrator.sys.mjs')
-rw-r--r--browser/components/migration/SafariProfileMigrator.sys.mjs2
1 files changed, 1 insertions, 1 deletions
diff --git a/browser/components/migration/SafariProfileMigrator.sys.mjs b/browser/components/migration/SafariProfileMigrator.sys.mjs
index 418d2b66c8..c134c0869a 100644
--- a/browser/components/migration/SafariProfileMigrator.sys.mjs
+++ b/browser/components/migration/SafariProfileMigrator.sys.mjs
@@ -632,7 +632,7 @@ export class SafariProfileMigrator extends MigratorBase {
while (!(await this.hasPermissions())) {
let fp = Cc["@mozilla.org/filepicker;1"].createInstance(Ci.nsIFilePicker);
// The title (second arg) is not displayed on macOS, so leave it blank.
- fp.init(win, "", Ci.nsIFilePicker.modeGetFolder);
+ fp.init(win?.browsingContext, "", Ci.nsIFilePicker.modeGetFolder);
fp.filterIndex = 1;
fp.displayDirectory = FileUtils.getDir("ULibDir", [""]);
// Now wait for the filepicker to open and close. If the user picks