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
1 changed file:
Changes:
| ... | ... | @@ -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 |