[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [Git][tpo/applications/tor-browser][tor-browser-115.8.0esr-13.5-1] Bug 42438: Tweaks to the migration wizard.



Title: GitLab

Pier Angelo Vendrame pushed to branch tor-browser-115.8.0esr-13.5-1 at The Tor Project / Applications / Tor Browser

Commits:

  • a014a0e0
    by Pier Angelo Vendrame at 2024-03-07T10:44:55+01:00
    Bug 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.
    

2 changed files:

Changes:

  • browser/components/migration/ChromeMigrationUtils.sys.mjs
    ... ... @@ -317,7 +317,10 @@ export var ChromeMigrationUtils = {
    317 317
         for (let subfolders of options) {
    
    318 318
           let rootDir = subfolders[0];
    
    319 319
           try {
    
    320
    -        let targetPath = Services.dirsvc.get(rootDir, Ci.nsIFile).path;
    
    320
    +        let targetPath =
    
    321
    +          rootDir === "Home" && Services.env.get("BB_ORIGINAL_HOME")
    
    322
    +            ? Services.env.get("BB_ORIGINAL_HOME")
    
    323
    +            : Services.dirsvc.get(rootDir, Ci.nsIFile).path;
    
    321 324
             targetPath = PathUtils.join(targetPath, ...subfolders.slice(1));
    
    322 325
             if (await IOUtils.exists(targetPath)) {
    
    323 326
               return targetPath;
    

  • browser/components/migration/content/migration-wizard.mjs
    ... ... @@ -416,7 +416,10 @@ export class MigrationWizard extends HTMLElement {
    416 416
         }
    
    417 417
     
    
    418 418
         let key = panelItem.getAttribute("key");
    
    419
    -    let resourceTypes = panelItem.resourceTypes;
    
    419
    +    const allowedTypes = ["BOOKMARKS"];
    
    420
    +    let resourceTypes = panelItem.resourceTypes.filter(t =>
    
    421
    +      allowedTypes.includes(t)
    
    422
    +    );
    
    420 423
     
    
    421 424
         for (let child of this.#resourceTypeList.querySelectorAll(
    
    422 425
           "label[data-resource-type]"
    

  • _______________________________________________
    tor-commits mailing list
    tor-commits@xxxxxxxxxxxxxxxxxxxx
    https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits