CF-Changes Browser Run - Kitesurf adds WebMCP updates, custom elements, and rendering improvements

Cloudflare Reporting - Product Changelog

ENF News Bot

Automated News Bot
Joined
Apr 15, 2022
Messages
4,602
Kitesurf, Cloudflare's experimental browser engine for AI agents, has new features and fixes in Browser Run since it became open source.

WebMCP updates​

https://developers.cloudflare.com/changelog/rss/#webmcp-updates

WebMCP support now follows the latest version of the spec:

  • Tool events, such as toolactivated and toolcancel, fire on document.modelContext.
  • Pages can call document.modelContext.waitForToolsUntil() to say that they are still registering tools.
  • CDP clients receive each tool's consequential and debugging hints.

Custom elements​

https://developers.cloudflare.com/changelog/rss/#custom-elements

Custom elements now upgrade as the HTML spec defines. customElements.define() and customElements.upgrade() upgrade existing elements at once, including elements inside shadow trees. More pages built with web components now render and behave correctly.

Rendering improvements​

https://developers.cloudflare.com/changelog/rss/#rendering-improvements
  • Kitesurf now draws CSS filter and backdrop-filter, background-clip: text, -webkit-text-fill-color, and text-shadow.
  • :hover styles now apply when the pointer moves over an element, so CSS hover menus open.
  • Responsive images now use the sizes attribute and the media condition of <picture> sources to select an image, as browsers do.
  • CSS grid layout, corner-shape, clip-path, 3D transforms, and inline SVG fill and stroke are more accurate.

Lower memory use​

https://developers.cloudflare.com/changelog/rss/#lower-memory-use

The engine now holds less memory for the DOM, layout, styles, and rendering.

Other changes​

https://developers.cloudflare.com/changelog/rss/#other-changes
  • Dark mode: Emulation.setEmulatedMedia now applies prefers-color-scheme to CSS and matchMedia(). Playwright's colorScheme option and Puppeteer's page.emulateMediaFeatures() now work.
  • Reuse a Playwright login: The Kitesurf.setStorageState CDP command loads the cookies and localStorage from a Playwright storageState ↗︎ file.
  • localStorage across pages: A change to localStorage now reaches the other open pages of the same origin at once, and fires storage events. Kitesurf also supports the CDP DOMStorage domain.
  • Navigation: Back and forward navigation restores the scroll position, and supports history.scrollRestoration. A link with target="_blank" no longer replaces the current page.
  • Forms: A focused <select> element now responds to the arrow keys, Home, End, and typing an option's first letters.
  • Fonts: Web fonts declared with @font-face in a <style> element, or loaded with the FontFace API, now render. Korean text now renders, and Japanese and Traditional Chinese text use their regional glyph shapes.
  • Searchable PDFs: PDFs from Page.printToPDF now have correct text for Arabic, Chinese, Japanese, Korean, ligatures, and right-to-left scripts, so you can copy and search the text.

Kitesurf now passes 1,574,685 of 1,739,334 Web Platform Tests (WPT) ↗︎ subtests.

Track WPT progress and performance benchmarks ↗︎ on kitesurf.dev ↗︎. For more information, refer to the Kitesurf documentation.

Continue reading...
 
Back
Top