Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make web app reparenting respect manifest launch_handler configuration
Reparenting a web app from a browser tab currently always creates a new web app window for non-tabbed web apps. This CL changes reparenting that such that if the web app has its manifest.launch_handler.client_mode set to "navigate-existing" or "focus-existing" and there is already a web app window open then a fresh launch of the web app is executed with the browser tab's URL, this launch will navigate/focus the existing web app window, and then the browser tab is closed. This avoids opening multiple web app windows where launch_handler has been configured to dedup them. Existing browser tab page state is now lost. A future "tombstone tab" implementation is planned to enable users to "undo" the reparenting. Closing the browser tab after launching the web app to the same URL is consistent with popping browser tabs out to Arc Android apps and also avoids leaving behind an active tab in the browser which didn't happen in the previous flow. Bug: 1385226 Change-Id: I91f8b16711c89d3e46bf0e91b62ff45bff809b0e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4037721 Reviewed-by: Daniel Murphy <dmurph@chromium.org> Reviewed-by: Glen Robertson <glenrob@chromium.org> Commit-Queue: Alan Cutter <alancutter@chromium.org> Cr-Commit-Position: refs/heads/main@{#1075653}
- Loading branch information
1 parent
4d0ef51
commit 8fa958c
Showing
9 changed files
with
132 additions
and
63 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
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
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