-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Request for a navigationCommitted
event to inform immediately about the navigation status
#788
Comments
The Browser Testing and Tools Working Group just discussed The full IRC log of that discussion<simonstewart> Topic: Request for a navigationCommited event to inform immediately about the navigation status<simonstewart> github: https://github.com//issues/788 <simonstewart> 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 |
The Browser Testing and Tools Working Group just discussed The full IRC log of that discussion<tidoust> Topic: Request for a "navigationCommited" event<jgraham> RRSAgent: make minutes <RRSAgent> I have made the request to generate https://www.w3.org/2025/01/08-webdriver-minutes.html jgraham <tidoust> henrik: Put on the agenda because that is a requirement from Playwright. <tidoust> ... Opposite of navigation started event that we currently have. <tidoust> ... This would indicate that a navigation takes place. <jgraham> q+ <sadym> q+ <tidoust> ack jgraham <tidoust> ack sadym <jgraham> q+ <tidoust> sadym: It does make sense for us. The only question is where to put it in the specifications. It seems Alex has an idea to put it in the HTML spec. <whimboo> so it is actualy the opposite of `navigation aborted` event <tidoust> ... We do need it as well, we're going to implement. <whimboo> q? <tidoust> ack jgraham <sadym> q+ <tidoust> jgraham: Question was when is the event emitted. It feels it needs someone who understands the invariant of when that event is emitted. <tidoust> ... Reflect on how easy or hard it is to implement. <tidoust> ack sadym <jgraham> q+ <tidoust> sadym: It does make sense for us to emit that event when the document changes. When we see that the navigation is "committed". After that event, the navigation cannot be failed anymore. It can only be aborted. <tidoust> ack jgraham <tidoust> jgraham: Is somebody from Google able to make a PR for this, then? <tidoust> sadym: Yes. <jgraham> github: https://github.com//issues/788 |
From a discussion with the Playwright folks they propose the following:
|
navigationCommited
event to inform immediately about the navigation statusnavigationCommitted
event to inform immediately about the navigation status
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.
The text was updated successfully, but these errors were encountered: