Skip to content

Commit 9f18c09

Browse files
Connor ClarkDevtools-frontend LUCI CQ
authored andcommitted
[RPP] Exclude extensions from Duplicated JavaScript insight
Bug: 394373632 Change-Id: I5de1420c7a5294f3c95e767971b57d8d1ae9bc9f Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6393951 Reviewed-by: Jack Franklin <[email protected]> Commit-Queue: Jack Franklin <[email protected]> Auto-Submit: Connor Clark <[email protected]>
1 parent f7def75 commit 9f18c09

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

front_end/models/trace/insights/DuplicatedJavaScript.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@ export function generateInsight(
6666
return false;
6767
}
6868

69+
if (script.url?.startsWith('chrome-extension://')) {
70+
return false;
71+
}
72+
6973
return Helpers.Timing.timestampIsInBounds(context.bounds, script.ts);
7074
});
7175

0 commit comments

Comments
 (0)