Repository navigation
Conversation
On Linux, Chrome runs on Wayland by default when a Wayland session is detected. On Wayland, the compositor marks windows that are covered by another window as occluded, and Chrome then stops producing frames (and requestAnimationFrame() callbacks) for them. When the browser tests run in parallel, each browser instance has its own window, and all but the topmost one of them is occluded, which makes timing-sensitive tests flaky (e.g. browser.test_glgears_animation). Running Chrome with --ozone-platform=x11 (i.e. on XWayland) avoids this behavior: occluded windows keep producing frames at the full frame rate. The flag is only added for non-headless runs, since headless mode does not use a desktop platform.
juj
force-pushed
the
chrome-linux-x11-ozone
branch
from
November 25, 2026 17:19
cbc389d to
0e015ec
Compare
kripken
reviewed
Nov 25, 2026
| # On Linux, use X11 (XWayland) instead of Wayland for non-headless | ||
| # runs. On Wayland, Chrome stops producing requestAnimationFrame()s | ||
| # even when the disable occlusion checking flags are specified. | ||
| EMTEST_BROWSER += ' --ozone-platform=x11' |
Member
There was a problem hiding this comment.
Most linux users are on Wayland, so this change worries me a little.
Don't our other settings already prevent the problem of no rendering when occluded?
Collaborator
Author
There was a problem hiding this comment.
No, that was the core observation here.. after landing the no-occlusion-tracking flags, Windows and macOS Chrome runs passed, but Linux runner still fails on the test_glgears_animation test variants, since that behavior still takes place.
Member
There was a problem hiding this comment.
This sounds like a bug on Linux, if the chrome flags are not having the right effect, is there one filed?
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
On Linux, Chrome runs on Wayland by default when a Wayland session is detected. On Wayland, the compositor marks windows that are covered by another window as occluded, and Chrome then stops producing frames (and requestAnimationFrame() callbacks) for them. When the browser tests run in parallel, each browser instance has its own window, and all but the topmost one of them is occluded, which makes timing-sensitive tests flaky (e.g. browser.test_glgears_animation).
Running Chrome with --ozone-platform=x11 (i.e. on XWayland) avoids this behavior: occluded windows keep producing frames at the full frame rate.
The flag is only added for non-headless runs, since headless mode does not use a desktop platform.