Skip to content

chore: roll to 1.59.0-alpha#1900

Merged
yury-s merged 7 commits intomainfrom
roll-1.59
Mar 23, 2026
Merged

chore: roll to 1.59.0-alpha#1900
yury-s merged 7 commits intomainfrom
roll-1.59

Conversation

@yury-s
Copy link
Member

@yury-s yury-s commented Mar 23, 2026

  • Update driver to 1.59.0-alpha-1774052454000
  • Regenerate API (new: Debugger, ConsoleMessage.timestamp, Page.consoleMessages/clearConsoleMessages/clearPageErrors/pageErrors, Page.ariaSnapshot/pickLocator/cancelPickLocator, BrowserContext.debugger/ isClosed/setStorageState, Tracing.StartOptions.live, Video.start/stop, AutoCloseable returns for addInitScript/exposeBinding/exposeFunction/route)
  • Add DisposableObject/DisposableStub for AutoCloseable impls
  • Fix Debugger.pausedDetails() to use local state from pausedStateChanged event
  • Fix Video API: videoStart now returns artifact directly (no "video" event)
  • Fix BrowserType.connect: rename wsEndpoint param to endpoint
  • Port upstream tests: Debugger, ConsoleMessage timestamp/filter, clearConsoleMessages, clearPageErrors, Video.start/stop, setStorageState

yury-s and others added 7 commits March 23, 2026 11:49
- Update driver to 1.59.0-alpha-1774052454000
- Regenerate API (new: Debugger, ConsoleMessage.timestamp,
  Page.consoleMessages/clearConsoleMessages/clearPageErrors/pageErrors,
  Page.ariaSnapshot/pickLocator/cancelPickLocator, BrowserContext.debugger/
  isClosed/setStorageState, Tracing.StartOptions.live, Video.start/stop,
  AutoCloseable returns for addInitScript/exposeBinding/exposeFunction/route)
- Add DisposableObject/DisposableStub for AutoCloseable impls
- Fix Debugger.pausedDetails() to use local state from pausedStateChanged event
- Fix Video API: videoStart now returns artifact directly (no "video" event)
- Fix BrowserType.connect: rename wsEndpoint param to endpoint
- Port upstream tests: Debugger, ConsoleMessage timestamp/filter,
  clearConsoleMessages, clearPageErrors, Video.start/stop, setStorageState

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Port shouldSnapshotIntegration, shouldSupportMultilineText,
shouldConcatenate*, shouldIncludePseudo*, shouldWorkWithSlots,
shouldSnapshotInnerText, checkAriaHiddenText,
shouldIgnorePresentationAndNoneRoles, shouldNotUseOnAsCheckboxValue,
shouldNotReportTextareaTextContent, shouldNotShow*HiddenElements,
shouldSnapshotPlaceholderWhenDifferentFromName from
tests/page/page-aria-snapshot.spec.ts.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
… snapshot

- Register AriaSnapshotMode in Gson with ToLowerCaseSerializer so AI
  mode is serialized as "ai" (protocol expects lowercase)
- Fix PageImpl.ariaSnapshot() to call the frame-level ariaSnapshot
  protocol message directly (no selector), matching the JS client
  behavior; using locator(":root") produced "document [ref=e1]" as root
  in AI mode instead of the expected body-level snapshot
- Add TestPageAriaSnapshotAI with 12 tests covering: ref generation,
  aria-ref locator usage, iframe listing, locator-inside-iframe,
  generic node collapsing, cursor pointer hints, active element
  tracking, inline generic collapsing, title preservation, depth limit

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
WebKit no longer reports border-relative offsetX/offsetY, so remove
the conditional isWebKit() branches. All browsers now return the same
values (4c062ce upstream).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Firefox 148+ broke ontouchstart inheritance in popups (bugzilla 2014330).
Matches upstream fixme added in page-popup.spec.ts.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
The JS CDPSession fires two events per CDP protocol event:
  this.emit(event.method, event.params)  // method-specific
  this.emit('event', event)              // catch-all with { method, params }

Java was only firing the method-specific one. Add the missing
listeners.notify("event", parameters) call so on("event", handler)
receives every CDP event as { method, params }.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@yury-s yury-s merged commit afd80ad into main Mar 23, 2026
24 of 27 checks passed
@yury-s yury-s deleted the roll-1.59 branch March 23, 2026 20:58
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.

2 participants