Skip to content

Fix Navigation Inspector in Safari#95329

Merged
samselikoff merged 1 commit into
canaryfrom
sam/fix-nav-inspector-in-safari
Jul 1, 2026
Merged

Fix Navigation Inspector in Safari#95329
samselikoff merged 1 commit into
canaryfrom
sam/fix-nav-inspector-in-safari

Conversation

@samselikoff

Copy link
Copy Markdown
Contributor

Fixes the Navigation Inspector in Safari/WebKit on localhost.

Safari 18.6 exposes the Cookie Store API, but WebKit on localhost can resolve cookieStore.set() and emit a change event without committing a cookie that is visible to document.cookie or sent with requests. Since the instant navigation lock depends on a real request cookie, the inspector was not working correctly.

This switches instant-nav cookie writes/deletes to document.cookie, keeps Cookie Store for observing changes, and makes Resume wait for the delete event before starting the next pending capture.

Use `document.cookie` for instant navigation pause state so WebKit on localhost commits the cookie reliably, while continuing to observe changes through Cookie Store. Preserve the ordered Resume flow by waiting for the delete event before starting the next pending capture.

Add a regression test for browsers where `cookieStore.set()` does not reflect in `document.cookie`.
@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Stats cancelled

Commit: fca7595
View workflow run

@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Tests Passed

Commit: fca7595

@samselikoff samselikoff enabled auto-merge (squash) July 1, 2026 13:18
@samselikoff samselikoff merged commit d6f4cd3 into canary Jul 1, 2026
326 of 331 checks passed
@samselikoff samselikoff deleted the sam/fix-nav-inspector-in-safari branch July 1, 2026 14:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants