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/SafariProfileMigrator.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/SafariProfileMigrator.sys.mjs')
-rw-r--r-- | browser/components/migration/SafariProfileMigrator.sys.mjs | 2 |
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 |