Skip to content

Support newer versions of Chrome#749

Merged
GrahamCampbell merged 7 commits into
1.16from
support-newer-chrome
Jul 6, 2026
Merged

Support newer versions of Chrome#749
GrahamCampbell merged 7 commits into
1.16from
support-newer-chrome

Conversation

@GrahamCampbell

@GrahamCampbell GrahamCampbell commented Jul 6, 2026

Copy link
Copy Markdown
Member

Several parts of the library broke on Chrome versions newer than 122. Chrome 128 and later respond to Target.closeTarget before emitting Target.targetDestroyed, so Page::close() now waits for the target to actually be destroyed before returning, and headless Chrome 128 to 143 shrinks the viewport by phantom window decorations shortly after startup, so new pages are now pinned to the requested window size (or 800x600) and Mouse::findElement() scrolls the element into view and waits for its position to settle instead of dispatching wheel events at a stale target. The tests are adjusted for newer behaviour where Chrome 142 stopped renumbering DOM node ids on reload, Chrome 149 normalizes carriage returns while typing, and the connect-to-browser test now waits for the target created event to arrive. Continuous integration now pairs Chrome 122, 130, 140 and 150 with different Symfony versions so it covers our lowest and highest supported versions without inflating the job count.

@GrahamCampbell GrahamCampbell merged commit 5bb7d50 into 1.16 Jul 6, 2026
40 checks passed
@GrahamCampbell GrahamCampbell deleted the support-newer-chrome branch July 6, 2026 10:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant