Commit 369ef61c authored by Pier Angelo Vendrame's avatar Pier Angelo Vendrame 🎃
Browse files

BB 42438: Tweaks to the migration wizard.

Remove the items not compatible with our features (such as history) from
the migration wizard.

On Linux, allow to specify an alternative home directory, since we
usually change $HOME in our startup script.
parent b6e8ad5b
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -340,6 +340,8 @@ export var ChromeMigrationUtils = {

        if (rootDir == SNAP_REAL_HOME) {
          targetPath = Services.env.get("SNAP_REAL_HOME");
        } else if (rootDir === "Home" && Services.env.get("BB_ORIGINAL_HOME")) {
          targetPath = Services.env.get("BB_ORIGINAL_HOME");
        } else {
          targetPath = Services.dirsvc.get(rootDir, Ci.nsIFile).path;
        }
+4 −1
Original line number Diff line number Diff line
@@ -500,7 +500,10 @@ export class MigrationWizard extends HTMLElement {
    }

    let key = panelItem.getAttribute("key");
    let resourceTypes = panelItem.resourceTypes;
    const allowedTypes = ["BOOKMARKS"];
    let resourceTypes = panelItem.resourceTypes.filter(t =>
      allowedTypes.includes(t)
    );

    for (let child of this.#resourceTypeList.querySelectorAll(
      "label[data-resource-type]"