Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
The Tor Project
Applications
Tor Browser
Commits
a2fceb92
Commit
a2fceb92
authored
Oct 30, 2019
by
Alex Catarineu
Committed by
Matthew Finkel
May 04, 2021
Browse files
Bug 27604: Fix addon issues when moving TB directory
parent
004a8317
Changes
1
Hide whitespace changes
Inline
Side-by-side
toolkit/mozapps/extensions/internal/XPIProvider.jsm
View file @
a2fceb92
...
...
@@ -475,7 +475,7 @@ class XPIState {
// Builds prior to be 1512436 did not include the rootURI property.
// If we're updating from such a build, add that property now.
if (
!("rootURI" in this) &&
this.file) {
if (this.file) {
this.rootURI = getURIForResourceInFile(this.file, "").spec;
}
...
...
@@ -488,7 +488,10 @@ class XPIState {
saved.currentModifiedTime != this.lastModifiedTime
) {
this.lastModifiedTime = saved.currentModifiedTime;
} else if (saved.currentModifiedTime === null) {
} else if (
saved.currentModifiedTime === null &&
(!this.file || !this.file.exists())
) {
this.missing = true;
}
}
...
...
@@ -1449,6 +1452,7 @@ var XPIStates = {
if (shouldRestoreLocationData && oldState[loc.name]) {
loc.restore(oldState[loc.name]);
changed = changed || loc.path != oldState[loc.name].path;
}
changed = changed || loc.changed;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment