| commit | abf2cde18adfd8e0b62e28a3a53cdab3ddc3f59c | [log] [tgz] |
|---|---|---|
| author | Jonathan Lee <jonathanjlee@google.com> | Fri Jan 10 19:31:54 2025 |
| committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Jan 10 19:31:54 2025 |
| tree | 5724bceac7162137a8fe22a0608954bb2b7a3aa2 | |
| parent | 554cdc646bd54ef6e832e698e2f8752563a4d13f [diff] |
[headless] Plumb visibility changes from CDP handler to the renderer
This ensures WebDriver window resizing commands [0] update the top-level
`document.{hidden,visibilityState}` and fire `visibilitychange` events
appropriately.
[0]: https://www.w3.org/TR/webdriver/#resizing-and-positioning-windows
Fixed: 40666057, 367821948
Test: https://github.com/web-platform-tests/wpt/blob/4c45aa5cdb/page-visibility/minimize.html
Change-Id: Ia58d196ea0334ec389adf8dbb0f9f5c3304122a4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6158595
Reviewed-by: Weizhong Xia <weizhong@google.com>
Auto-Submit: Jonathan Lee <jonathanjlee@google.com>
Reviewed-by: Peter Kvitek <kvitekp@chromium.org>
Commit-Queue: Weizhong Xia <weizhong@google.com>
Cr-Commit-Position: refs/heads/main@{#1404921}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
To check out the source code locally, don't use git clone! Instead, follow the instructions on how to get the code.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure.
For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.
If you found a bug, please file it at https://crbug.com/new.