Don't emit "browsingContext.navigationStarted" event when creating new top-level browsing contexts (tabs) when "about:blank" is loaded
Categories
(Remote Protocol :: WebDriver BiDi, enhancement, P2)
Tracking
(firefox134 fixed)
Tracking | Status | |
---|---|---|
firefox134 | --- | fixed |
People
(Reporter: whimboo, Assigned: Sasha)
References
(Blocks 1 open bug, )
Details
(Whiteboard: [webdriver:m14][wptsync upstream][webdriver:relnote])
Attachments
(3 files)
When executing the command browsingContext.create
we currently send out navigation events like browsingContext.navigationStarted
even for the initial about:blank
. As discussed during TPAC (https://github.com/w3c/webdriver-bidi/issues/766) we should align to other browsers and as well follow the HTML specification which doesn't say that navigation events should be emitted.
This should also apply to evaluating a script that runs window.open()
for about:blank
.
But normal navigations to about:blank
should not be affected.
@whimboo So webdriver bidi, I see the constructor for browsingContext
emits the nnavigationStarted
event, which is a private method. The browsingContext.Create
doesn't emit the navigationStarted
event itself. So what we are trying to do here is to remove this right?
Updated•5 months ago
|
Updated•5 months ago
|
Comment 3•5 months ago
|
||
Per discussion on phabricator, resetting the bug
Updated•4 months ago
|
Reporter | ||
Updated•4 months ago
|
Assignee | ||
Updated•4 months ago
|
Assignee | ||
Comment 4•4 months ago
|
||
Keeping this bug just about skipping "browsingContext.navigationStarted" event and moving load events to a follow-up bug 1930594.
Assignee | ||
Comment 5•4 months ago
|
||
Just to document the spec state:
In the browsing context creation algorithm there are no navigation steps, we are only supposed to set about:blank
to certain context properties, this means that we don’t get to the step of sending browsingContext.navigationStarted
event.
In case of window.open
, in the window open steps algorithm we're supposed to create a top browsing context (so the behavior is similar to the case described above) and then navigate or update history to a desired URL, but as it says in the note in the step 6 we shouldn't do anything if the url fully matches about:blank
. Which means that again we shouldn't emit browsingContext.navigationStarted
event.
We should still send browsingContext.navigationStarted
event when a client navigates to it outside a top-level context creation.
Assignee | ||
Updated•4 months ago
|
Assignee | ||
Comment 6•4 months ago
|
||
Assignee | ||
Comment 7•4 months ago
|
||
Reporter | ||
Updated•4 months ago
|
Updated•3 months ago
|
Comment 10•3 months ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/db7391afb2a2
https://hg.mozilla.org/mozilla-central/rev/d5f3b0175c7f
Reporter | ||
Updated•2 months ago
|
Description
•