Skip to content

Conversation

@krichprollsch
Copy link
Member

Relates with #1160

  • Support url parameter on createTarget. we now navigate on createTarget to dispatch events correctly, even in case of about:blank.
  • Send lifecycle events when enabling the feature: chrome dispatch events on activation if the page is loaded
  • Remove inflight connections check on enable/disable TLS b/c chromiumoxide calls the command during navigate and Curl seems to accept it...

chromiumoxide sends the command while connections are in progress and it
doesn't cause issue w/ curl.
@krichprollsch krichprollsch self-assigned this Oct 21, 2025
@krichprollsch krichprollsch added the CDP Chrome Debug Protocol label Oct 21, 2025
@karlseguin
Copy link
Collaborator

demo's node puppeteer/cdp.js hangs on this branch, which is probably the same thing as the failing action.


const std = @import("std");
const Page = @import("../../browser/page.zig").Page;
const timestampF = @import("../../datetime.zig").timestamp;
Copy link
Collaborator

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?

Copy link
Member Author

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?

Copy link
Collaborator

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());
Copy link
Collaborator

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!

@krichprollsch
Copy link
Member Author

I fixed puppeteer/playwright issues

@krichprollsch
Copy link
Member Author

krichprollsch commented Oct 22, 2025

Still have an issue with chromedp 🕵️
It works in fact...

@krichprollsch krichprollsch merged commit b58ff2c into main Oct 24, 2025
10 checks passed
@krichprollsch krichprollsch deleted the cdp-lifecycle branch October 24, 2025 06:33
@github-actions github-actions bot locked and limited conversation to collaborators Oct 24, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

CDP Chrome Debug Protocol

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants