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
+1
View File
@@ -160,6 +160,7 @@ const emitSessionTimeline = (
: `http://127.0.0.1:${String(port)}/redirected?token=redirect-secret`;
event(socket, "Network.requestWillBeSent", command.sessionId, {
requestId: "document-request",
type: options.sessionRedirectResourceType,
frameId: "frame-main",
loaderId: "loader-redirect",
request: { url: redirectUrl, method: "GET" },
+1
View File
@@ -54,6 +54,7 @@ export interface FakeOptions {
| "outside_policy"
| "target_detached";
readonly sessionTimelineEventCount?: number;
readonly sessionRedirectResourceType?: "Document" | "Fetch" | "Script";
readonly closeAfterMethod?: string;
readonly sensitiveShapes?: boolean;
readonly cachedResponseBody?: string;