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

Commits:

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