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

[tor-commits] [Git][tpo/applications/mullvad-browser][mullvad-browser-152.0a1-16.0-2] fixup! BB 27604: Fix addon issues when moving the profile directory



Title: GitLab

Pier Angelo Vendrame pushed to branch mullvad-browser-152.0a1-16.0-2 at The Tor Project / Applications / Mullvad Browser

Commits:

  • 2dd9d803
    by Pier Angelo Vendrame at 2026-06-10T15:24:25+02:00
    fixup! BB 27604: Fix addon issues when moving the profile directory
    
    BB 44795: Revert 27604, as upstream resolved their related Bug.
    
    Revert "BB 27604: Fix addon issues when moving the profile directory"
    
    This reverts commit 419a66bb7e590c6bea46c3139c4b55010e969004.
    

1 changed file:

Changes:

  • toolkit/mozapps/extensions/internal/XPIProvider.sys.mjs
    ... ... @@ -509,9 +509,7 @@ class XPIState {
    509 509
         // by XPIDatabaseReconcile.updatePath (called from XPIDatabaseReconcile.updateExistingAddon
    
    510 510
         // when the oldAddon.path and newAddon.path are mismatching, as part of the
    
    511 511
         // XPIDatabaseReconcile.processFileChanges logic).
    
    512
    -    //
    
    513
    -    // On Tor Browser we do it anyway whenever this.file is defined (tor-browser#27604)
    
    514
    -    if (this.file) {
    
    512
    +    if (this.file && (isRelocatedLocation || !("rootURI" in this))) {
    
    515 513
           this.rootURI = getURIForResourceInFile(this.file, "").spec;
    
    516 514
           if (isRelocatedLocation) {
    
    517 515
             logger.warn(
    
    ... ... @@ -529,10 +527,7 @@ class XPIState {
    529 527
           saved.currentModifiedTime != this.lastModifiedTime
    
    530 528
         ) {
    
    531 529
           this.lastModifiedTime = saved.currentModifiedTime;
    
    532
    -    } else if (
    
    533
    -      saved.currentModifiedTime === null &&
    
    534
    -      (!this.file || !this.file.exists())
    
    535
    -    ) {
    
    530
    +    } else if (saved.currentModifiedTime === null) {
    
    536 531
           this.missing = true;
    
    537 532
         }
    
    538 533
       }
    
    ... ... @@ -1658,7 +1653,6 @@ var XPIStates = {
    1658 1653
     
    
    1659 1654
           if (shouldRestoreLocationData && oldState[loc.name]) {
    
    1660 1655
             loc.restore(oldState[loc.name]);
    
    1661
    -        changed = changed || loc.path != oldState[loc.name].path;
    
    1662 1656
           }
    
    1663 1657
           changed = changed || loc.changed;
    
    1664 1658
     
    

  • _______________________________________________
    tor-commits mailing list -- tor-commits@xxxxxxxxxxxxxxxxxxxx
    To unsubscribe send an email to tor-commits-leave@xxxxxxxxxxxxxxxxxxxx