commit | e090938556780999db8cca6dfde8aab52b57300b | [log] [tgz] |
---|---|---|
author | Edman Anjos <edmanp@google.com> | Wed Jan 31 14:08:57 2024 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Jan 31 14:08:57 2024 |
tree | 71d43b087458f2ea9340ad760698aecd48fd1974 | |
parent | 974107cb35725f144e922407202354d021c6e35f [diff] |
kiosk: Close new browsers by closing tabs instead of window Currently we close new browsers with `browser->window()->Close()`. Turns out this can fail in certain conditions, e.g. if the user is currently dragging the window. This leads to the possibility that a new window does not get closed. This change uses `browser->tab_strip_model()->CloseAllTabs()` that seems to be more resilient and closes the browser window during drag events. Note this is a bandaid fix, the ideal solution is to prevent the window from opening on the first place, not to close it after the fact. This is behind the `kKioskCloseAllTabs` feature flag. Enable it with the `--enable-features=KioskCloseAllTabs` arg in /etc/chrome_dev.conf. and the window still closes during a drag. Bug: b:322954900 Test: manual - do the steps in b/322775376, verify step 11 does not work Change-Id: Iae6beba499e66d7849551331bc10e55179051024 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5249989 Commit-Queue: Edman Anjos <edman@chromium.org> Reviewed-by: Ben Franz <bfranz@chromium.org> Cr-Commit-Position: refs/heads/main@{#1254484}
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.