From d9928246255aa21f69a6cba94764170d24d7ce5a Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Thu, 27 Oct 2022 16:28:55 -0400 Subject: [PATCH] Just to be sure no race condition Related commit: - https://github.com/gorhill/uBlock/commit/d1f8a05d2dd4fc97eea79e8998d2d3955cbf74fa --- src/js/scriptlet-filtering.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/js/scriptlet-filtering.js b/src/js/scriptlet-filtering.js index 72dcc444a..1a8e2901f 100644 --- a/src/js/scriptlet-filtering.js +++ b/src/js/scriptlet-filtering.js @@ -91,7 +91,8 @@ const contentscriptCode = (( ) => { function(hostname, scriptlets) { if ( document.location === null || - hostname !== document.location.hostname + hostname !== document.location.hostname || + typeof self.uBO_scriptletsInjected === 'boolean' ) { return; }