Skip to content

fix(network): derive navigation_request? from the resource type of Fetch events - #699

Merged
route merged 1 commit into
mainfrom
fix/navigation-request-predicate
Nov 8, 2026
Merged

route merged 1 commit into
mainfrom
fix/navigation-request-predicate

Conversation

@route

@route route commented Nov 8, 2026

Copy link
Copy Markdown
Member

InterceptedRequest#navigation_request? and AuthRequest#navigation_request? always returned nil. They read isNavigationRequest, a field of the deprecated Network.requestIntercepted event. Since the switch to Fetch.requestPaused and Fetch.authRequired (61f5a1c), which don't send it, the key was never present.

Both now return true when resource_type is "Document".

Note this is also true for subframe document requests.

…tch events

isNavigationRequest belonged to the deprecated Network.requestIntercepted event. Fetch.requestPaused and Fetch.authRequired don't send it, so both predicates returned nil since the switch to Fetch.
@route
route merged commit d1889f5 into main Nov 8, 2026
7 checks passed
@route
route deleted the fix/navigation-request-predicate branch November 8, 2026 18:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant