-
Notifications
You must be signed in to change notification settings - Fork 908
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upstream changes to `CloseWebContentsAt` have changed it to a void return function. This means that in case of test code, it is necessary for checks to compare the number of tabs before, and after the `CloseWebContentsAt` calls. Chromium change: https://chromium.googlesource.com/chromium/src/+/85b180cc6fb9d81a6578d75254f5e3ccb7ea3f31 commit 85b180cc6fb9d81a6578d75254f5e3ccb7ea3f31 Author: Simon Hangl <[email protected]> Date: Thu Jun 29 18:54:44 2023 +0000 Reland "Prevent non-closable tabs from being closed" This is a reland of commit 889fff9f35c578e4da34c2a2ae4ef4c7bb49130a CQ_INCLUDE_TRYBOTS=luci.chrome.try:chromeos-betty-pi-arc-chrome CQ_INCLUDE_TRYBOTS=luci.chrome.try:chromeos-eve-chrome CQ_INCLUDE_TRYBOTS=luci.chrome.try:chromeos-kevin-chrome CQ_INCLUDE_TRYBOTS=luci.chrome.try:chromeos-octopus-chrome CQ_INCLUDE_TRYBOTS=luci.chrome.try:chromeos-reven-chrome Original change's description: > Prevent non-closable tabs from being closed > > This CL implements admin configurable non-closable apps. > These apps should neither be closable through closing the only web app > tab (which this CL implements) nor by closing the window containing the > app (future CL). The check is placed in `TabStripModel::CloseTabs` to > ensure the tab cannot be closed, as all paths to close a tab go through > this method. The close prevention is achieved by filtering all tabs > that cannot be closed from the list of tabs to close. > > DD: go/preventclose > Bug: b/278246367
- Loading branch information
1 parent
d10afc2
commit 76aceb9
Showing
3 changed files
with
27 additions
and
16 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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