From eca1d8f728127ff0d35c637f7f0a56413b15b1f4 Mon Sep 17 00:00:00 2001 From: Connor Clark Date: Tue, 3 May 2022 12:03:09 -0700 Subject: [PATCH 1/2] core(js-usage): ignore __puppeteer_evaluation_script__ --- core/gather/gatherers/js-usage.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/gather/gatherers/js-usage.js b/core/gather/gatherers/js-usage.js index 1f9d5e2c150e..4dbfed0ad13a 100644 --- a/core/gather/gatherers/js-usage.js +++ b/core/gather/gatherers/js-usage.js @@ -59,6 +59,10 @@ class JsUsage extends FRGatherer { continue; } + if (scriptUsage.url === '__puppeteer_evaluation_script__') { + continue; + } + usageByScriptId[scriptUsage.scriptId] = scriptUsage; } From fb7f44b6a10a6970970140b9d2a895bc13fd086d Mon Sep 17 00:00:00 2001 From: Connor Clark Date: Tue, 13 Dec 2022 13:13:26 -0800 Subject: [PATCH 2/2] pr --- core/gather/gatherers/js-usage.js | 1 + 1 file changed, 1 insertion(+) diff --git a/core/gather/gatherers/js-usage.js b/core/gather/gatherers/js-usage.js index 4dbfed0ad13a..2c84cc7f2d57 100644 --- a/core/gather/gatherers/js-usage.js +++ b/core/gather/gatherers/js-usage.js @@ -59,6 +59,7 @@ class JsUsage extends FRGatherer { continue; } + // Scripts run via puppeteer's evaluate interface will have this url. if (scriptUsage.url === '__puppeteer_evaluation_script__') { continue; }