next.js
d6f4cd33 - Fix Navigation Inspector in Safari (#95329)

Commit
152 days ago
Fix Navigation Inspector in Safari (#95329) 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.
Author
Parents
Loading