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

[tor-commits] [Git][tpo/applications/tor-browser][tor-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 tor-browser-152.0a1-16.0-2 at The Tor Project / Applications / Tor Browser

Commits:

  • d2b622d6
    by Pier Angelo Vendrame at 2026-06-09T18:16:08+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
    ... ... @@ -508,9 +508,7 @@ class XPIState {
    508 508
         // by XPIDatabaseReconcile.updatePath (called from XPIDatabaseReconcile.updateExistingAddon
    
    509 509
         // when the oldAddon.path and newAddon.path are mismatching, as part of the
    
    510 510
         // XPIDatabaseReconcile.processFileChanges logic).
    
    511
    -    //
    
    512
    -    // On Tor Browser we do it anyway whenever this.file is defined (tor-browser#27604)
    
    513
    -    if (this.file) {
    
    511
    +    if (this.file && (isRelocatedLocation || !("rootURI" in this))) {
    
    514 512
           this.rootURI = getURIForResourceInFile(this.file, "").spec;
    
    515 513
           if (isRelocatedLocation) {
    
    516 514
             logger.warn(
    
    ... ... @@ -528,10 +526,7 @@ class XPIState {
    528 526
           saved.currentModifiedTime != this.lastModifiedTime
    
    529 527
         ) {
    
    530 528
           this.lastModifiedTime = saved.currentModifiedTime;
    
    531
    -    } else if (
    
    532
    -      saved.currentModifiedTime === null &&
    
    533
    -      (!this.file || !this.file.exists())
    
    534
    -    ) {
    
    529
    +    } else if (saved.currentModifiedTime === null) {
    
    535 530
           this.missing = true;
    
    536 531
         }
    
    537 532
       }
    
    ... ... @@ -1657,7 +1652,6 @@ var XPIStates = {
    1657 1652
     
    
    1658 1653
           if (shouldRestoreLocationData && oldState[loc.name]) {
    
    1659 1654
             loc.restore(oldState[loc.name]);
    
    1660
    -        changed = changed || loc.path != oldState[loc.name].path;
    
    1661 1655
           }
    
    1662 1656
           changed = changed || loc.changed;
    
    1663 1657
     
    

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