[WebAPKs] Show minibar when WebAPK navigates outside scope specified in Web Manifest
This CL changes the behavior when a user taps a link in the WebAPK which
navigates out of the scope specified by the Web Manifest. Currently, the
navigation creates a new Chrome tab. The new behavior is to stay within the
WebAPK but to show a header with the page origin. The header is shown whenever
the WebAPK is on a page outside of the Web Manifest scope.
In the near future we will launch a Chrome custom tab https://crbug.com/624236
when a WebAPK navigates outside of the Web Manifest scope. Unfortunately this
is not possible for Chrome 57.
BUG=680167
TEST=ExternalNavigationHandlerTest.*, WebappVisibilityTest.*
Review-Url: https://codereview.chromium.org/2636103002
Cr-Commit-Position: refs/heads/master@{#444619}
11 files changed