Skip to content

Commit 98df44c

Browse files
committed
invalidate resources selfie when new version is detected [Firefox]
1 parent c70881e commit 98df44c

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

dist/version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.15.23.0
1+
1.15.24

src/js/start.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,16 @@ var onPSLReady = function() {
105105
var onVersionReady = function(lastVersion) {
106106
if ( lastVersion === vAPI.app.version ) { return; }
107107

108+
// Since AMO does not allow updating resources.txt, force a reload when a
109+
// new version is detected, as resources.txt may have changed since last
110+
// release. This will be done only for release versions of Firefox.
111+
if (
112+
/^Mozilla-Firefox-/.test(vAPI.webextFlavor) &&
113+
/(b|rc)\d+$/.test(vAPI.app.version) === false
114+
) {
115+
µb.redirectEngine.invalidateResourcesSelfie();
116+
}
117+
108118
// From 1.15.19b9 and above, the `behind-the-scene` scope is no longer
109119
// whitelisted by default, and network requests from that scope will be
110120
// subject to filtering by default.

0 commit comments

Comments
 (0)