From 9327e1923309c529b17de018f8ccbce2595fdb20 Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Sun, 17 Aug 2025 08:01:51 -0400 Subject: [PATCH] Fix undue fetch from remote server at first install Related issue: https://github.com/uBlockOrigin/uBlock-issues/issues/3761 Regression from: https://github.com/gorhill/uBlock/commit/69fce3aa6eaa2a34b7e9d2b974674d9da9d49514 --- src/js/assets.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/js/assets.js b/src/js/assets.js index b7b18fb28..0b56f7cb8 100644 --- a/src/js/assets.js +++ b/src/js/assets.js @@ -909,6 +909,13 @@ assets.get = async function(assetKey, options = {}) { return readUserAsset(assetKey); } + // https://github.com/uBlockOrigin/uBlock-issues/issues/3761 + if ( µb.readyToFilter !== true ) { + if ( options.favorLocal === undefined ) { + options.favorLocal = true; + } + } + let assetDetails = {}; const reportBack = (content, url = '', err = undefined) => {