Chromium Issue
https://issues.chromium.org/issues/41495930
Description
Fixed a bug in installed TWAs / WebAPKs / Webapps on Android: choosing "Open in browser" from the in-app Custom Tab's action bar closed the hosting web app instead of just opening the URL in the browser.
Fix
When "Open in browser" is chosen from a Custom Tab hosted by an installed app, only finish the Custom Tab activity when it is safe (canFinishActivity), so the fallback path no longer closes the hosting web app after opening the URL in the browser.
CL
https://chromium-review.googlesource.com/c/chromium/src/+/8077858
Demo
https://static.januschka.com/i-41495930/
Status
Merged.

Chromium Issue
https://issues.chromium.org/issues/41495930
Description
Fixed a bug in installed TWAs / WebAPKs / Webapps on Android: choosing "Open in browser" from the in-app Custom Tab's action bar closed the hosting web app instead of just opening the URL in the browser.
Fix
When "Open in browser" is chosen from a Custom Tab hosted by an installed app, only finish the Custom Tab activity when it is safe (
canFinishActivity), so the fallback path no longer closes the hosting web app after opening the URL in the browser.CL
https://chromium-review.googlesource.com/c/chromium/src/+/8077858
Demo
https://static.januschka.com/i-41495930/
Status
Merged.