Skip to content

Fix Chromium issue 41495930: Custom Tab 'Open in browser' crashes hosting web app #125

Description

@hjanuschka

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions