Add the import wizard to settings, fix Chromium Edge

This commit is contained in:
ownedbywuigi 2026-04-01 18:01:58 +01:00
commit 78baea7a1d
6 changed files with 116 additions and 9 deletions

View file

@ -5,6 +5,7 @@
Components.utils.import("resource://gre/modules/Downloads.jsm");
Components.utils.import("resource://gre/modules/FileUtils.jsm");
Components.utils.import("resource://gre/modules/Task.jsm");
Components.utils.import("resource:///modules/MigrationUtils.jsm");
Components.utils.import("resource:///modules/ShellService.jsm");
Components.utils.import("resource:///modules/TransientPrefs.jsm");
@ -75,6 +76,8 @@ var gMainPane = {
gMainPane.setHomePageToBookmark);
setEventListener("restoreDefaultHomePage", "command",
gMainPane.restoreDefaultHomePage);
setEventListener("openMigrationWizard", "command",
gMainPane.openMigrationWizard);
setEventListener("chooseFolder", "command",
gMainPane.chooseFolder);
@ -244,6 +247,11 @@ var gMainPane = {
homePage.value = homePage.defaultValue;
},
openMigrationWizard: function ()
{
MigrationUtils.showMigrationWizard(window, [MigrationUtils.MIGRATION_ENTRYPOINT_PLACES]);
},
// DOWNLOADS
/*

View file

@ -244,6 +244,20 @@
</radiogroup>
</groupbox>
<!-- Import -->
<groupbox id="importGroup"
data-category="paneGeneral"
hidden="true">
<caption><label>&importGroup.label;</label></caption>
<hbox>
<button id="openMigrationWizard"
class="content-cell-item"
label="&importBrowserData.label;"
accesskey="&importBrowserData.accesskey;"/>
</hbox>
</groupbox>
<!-- Tab preferences -->
<groupbox data-category="paneGeneral"
hidden="true" align="start">