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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user