diff options
Diffstat (limited to 'browser/components/migration/ChromeProfileMigrator.sys.mjs')
-rw-r--r-- | browser/components/migration/ChromeProfileMigrator.sys.mjs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/browser/components/migration/ChromeProfileMigrator.sys.mjs b/browser/components/migration/ChromeProfileMigrator.sys.mjs index 342ac3f376..e32417cd04 100644 --- a/browser/components/migration/ChromeProfileMigrator.sys.mjs +++ b/browser/components/migration/ChromeProfileMigrator.sys.mjs @@ -140,7 +140,7 @@ export class ChromeProfileMigrator extends MigratorBase { // to Chrome's local state directory. while (!(await this.hasPermissions())) { let fp = Cc["@mozilla.org/filepicker;1"].createInstance(Ci.nsIFilePicker); - fp.init(win, "", Ci.nsIFilePicker.modeGetFolder); + fp.init(win?.browsingContext, "", Ci.nsIFilePicker.modeGetFolder); fp.filterIndex = 1; // Now wait for the filepicker to open and close. If the user picks // the local state folder, the OS should grant us read access to everything |