-
Notifications
You must be signed in to change notification settings - Fork 284
support url on createTarget and send lifecycle events #1171
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
Conversation
chromiumoxide sends the command while connections are in progress and it doesn't cause issue w/ curl.
|
demo's |
|
|
||
| const std = @import("std"); | ||
| const Page = @import("../../browser/page.zig").Page; | ||
| const timestampF = @import("../../datetime.zig").timestamp; |
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.
timestampF because it collides with existing timestamp variables?
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.
indeed, do you have a better suggestion?
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.
Nope, was just curious.
| const page = bc.session.currentPage() orelse return error.PageNotLoaded; | ||
|
|
||
| if (page.load_state == .complete) { | ||
| try sendPageLifecycle(bc, "DOMContentLoaded", timestampF()); |
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 like that all this is in the CDP layer!
|
I fixed puppeteer/playwright issues |
|
|
Relates with #1160
urlparameter on createTarget. we now navigate oncreateTargetto dispatch events correctly, even in case ofabout:blank.