Open whimboo opened 2 months ago
The Browser Testing and Tools Working Group just discussed Request for a navigationCommited event to inform immediately about the navigation status
.
Action: someone in chrome to find out what a
navigationCommited
actually is, and what it corresponds to in a spec
It happens here https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/loader/document_loader.cc;l=2152;drc=c5f3a25855b895bb587af5dbd8ff3ebfb7be76e1 and I believe it roughly corresponds to this step in the HTML spec https://html.spec.whatwg.org/multipage/browsing-the-web.html#populating-a-session-history-entry:loading-a-document
This is a request from the Playwright folks:
In Puppeteer this event is named
page.frameNavigated
.It's not clear right now where in the HTML spec it could hook into to accurately inform about the status of the current navigation.