From 086c044dc34dfc0f74fbe41f4ecb402b2cd34884 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 03:13:33 +0200 Subject: Merging upstream version 125.0.1. Signed-off-by: Daniel Baumann --- browser/components/migration/ChromeProfileMigrator.sys.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'browser/components/migration/ChromeProfileMigrator.sys.mjs') 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 -- cgit v1.2.3