When a TWA leaves the verified origin, it shows the Custom Tabs top bar which has a close button on it. This close button currently closes the Activity, which is undesirable.
Instead it should navigate back to the last page that was on the verified origin (as this will get rid of the top bar).
There's already code to do this for dynamic modules.
Comment 1 by bugdroid1@chromium.org
, Nov 22