Skip to content

Conversation

nikneym
Copy link
Contributor

@nikneym nikneym commented Oct 21, 2025

This PR moves #1127's web API changes to this PR. We can swap-in to ada-url in CDP and close the initial PR once that become a necessity.

  • Refactors URL.
  • Refactors HTMLAnchorElement.

Closes #1111.

Also add ada-url bindings.
This still doesn't use `state` since `state` doesn't allow us to iterate the nodes when releasing the memory and we need to call `URL.destructor` when freeing. In the future, we might omit getter allocations by making such change.
return u.get_protocol();
defer u.destructor();

return page.arena.dupe(u8, u.get_protocol());
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

call_arena (if so, applicable in other places too)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Invalid URL parsing

2 participants