-
Notifications
You must be signed in to change notification settings - Fork 32
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
feat: do not emit initial navigation events #2796
base: main
Are you sure you want to change the base?
Conversation
@@ -55,6 +55,8 @@ export class BrowsingContextImpl { | |||
* If null, this is a top-level context. | |||
*/ | |||
#parentId: BrowsingContext.BrowsingContext | null = null; | |||
/** Flags if the initial navigation to `about:blank` is in progress. */ | |||
#initialNavigation = true; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the root cause is that Target.createTarget actually starts a second navigation after creating a new browsing context?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the new target is created by window.open
, the initial navigation is emitted as well
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see navigate calls in the window.open steps https://html.spec.whatwg.org/#window-open-steps
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it might be depending on the windowType result.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
btw it looks like old headless implementation does not do a navigation (on Target.createTarget)
546056c
to
943c091
Compare
b1fd7dc
to
8c346fe
Compare
Addressing #2793