fix(browser): keep subresource redirects out of page navigation scope (#524)

Signed-off-by: RudyCelekli <47457359+rudycelekli@users.noreply.github.com>
This commit is contained in:
Rudy Mizrahi Celekli
2026-10-05 14:58:14 +08:00
committed by GitHub
parent a8195ba2cc
commit 9c28f3c4c0
4 changed files with 61 additions and 0 deletions
+2
View File
@@ -266,6 +266,8 @@ class TimelineCapture {
}
#redirect(params: UnknownRecord): void {
const resourceType = stringValue(params.type);
if (resourceType !== undefined && resourceType !== "Document") return;
if (
stringValue(params.frameId) !== this.mainFrameId ||
recordValue(params.redirectResponse) === undefined