From 63b792bc89a58bab60511b38a41f9e5794e5936f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Buczek?= Date: Mon, 10 Jul 2023 19:37:54 +0200 Subject: [PATCH] Revert #7613 --- .../Scripts_Dynamic/Scripts/Sandboxed/SelectorsPollerScript.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Sources/Brave/Frontend/UserContent/UserScripts/Scripts_Dynamic/Scripts/Sandboxed/SelectorsPollerScript.js b/Sources/Brave/Frontend/UserContent/UserScripts/Scripts_Dynamic/Scripts/Sandboxed/SelectorsPollerScript.js index 44b57f0ab22..ece76a105d6 100644 --- a/Sources/Brave/Frontend/UserContent/UserScripts/Scripts_Dynamic/Scripts/Sandboxed/SelectorsPollerScript.js +++ b/Sources/Brave/Frontend/UserContent/UserScripts/Scripts_Dynamic/Scripts/Sandboxed/SelectorsPollerScript.js @@ -310,7 +310,7 @@ window.__firefox__.execute(function($) { } const futureTimeMs = window.Date.now() + returnToMutationObserverIntervalMs - const queryAttrsFromDocumentBound = querySelectorsFromElement.bind(undefined, document, futureTimeMs) + const queryAttrsFromDocumentBound = querySelectorsFromElement.bind(document, undefined, futureTimeMs) selectorsPollingIntervalId = window.setInterval(queryAttrsFromDocumentBound, selectorsPollingIntervalMs) } @@ -686,7 +686,6 @@ window.__firefox__.execute(function($) { * @param {*} switchToMutationObserverAtTime A timestamp that identifies when we should switch to the mutation observer */ const querySelectorsFromElement = async (element, switchToMutationObserverAtTime) => { - extractNewSelectors(element) const elmWithClassOrId = element.querySelectorAll('[class],[id]') elmWithClassOrId.forEach((node) => {