mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-10 01:02:08 +01:00
invalidate resources selfie when new version is detected [Firefox]
This commit is contained in:
parent
c70881e6a0
commit
98df44c373
2 changed files with 11 additions and 1 deletions
2
dist/version
vendored
2
dist/version
vendored
|
@ -1 +1 @@
|
||||||
1.15.23.0
|
1.15.24
|
||||||
|
|
|
@ -105,6 +105,16 @@ var onPSLReady = function() {
|
||||||
var onVersionReady = function(lastVersion) {
|
var onVersionReady = function(lastVersion) {
|
||||||
if ( lastVersion === vAPI.app.version ) { return; }
|
if ( lastVersion === vAPI.app.version ) { return; }
|
||||||
|
|
||||||
|
// Since AMO does not allow updating resources.txt, force a reload when a
|
||||||
|
// new version is detected, as resources.txt may have changed since last
|
||||||
|
// release. This will be done only for release versions of Firefox.
|
||||||
|
if (
|
||||||
|
/^Mozilla-Firefox-/.test(vAPI.webextFlavor) &&
|
||||||
|
/(b|rc)\d+$/.test(vAPI.app.version) === false
|
||||||
|
) {
|
||||||
|
µb.redirectEngine.invalidateResourcesSelfie();
|
||||||
|
}
|
||||||
|
|
||||||
// From 1.15.19b9 and above, the `behind-the-scene` scope is no longer
|
// From 1.15.19b9 and above, the `behind-the-scene` scope is no longer
|
||||||
// whitelisted by default, and network requests from that scope will be
|
// whitelisted by default, and network requests from that scope will be
|
||||||
// subject to filtering by default.
|
// subject to filtering by default.
|
||||||
|
|
Loading…
Reference in a new issue