Commit 3ddf3b0f authored by Biao She's avatar Biao She Committed by Commit Bot

Fix handling of navigation to external app

Previously, we want all redirection stays in Chrome while in VR. The problem is
if a webpage sends a redirection request that Chrome can't navigate to
(i.e. intent://*). Chrome just silently block the request. This leads to problem
described in issue 848788.
This CL unblocks such redirection (when redirect to an external app).

Bug: 848788
Change-Id: Ia1fc66afe1d011d1c814f7a907d423f053e7fb28
Reviewed-on: https://chromium-review.googlesource.com/1087775Reviewed-by: default avatarMichael Thiessen <mthiesse@chromium.org>
Commit-Queue: Biao She <bshe@chromium.org>
Cr-Commit-Position: refs/heads/master@{#564889}
parent 3af7b2a2
...@@ -189,7 +189,7 @@ public class VrShellImpl ...@@ -189,7 +189,7 @@ public class VrShellImpl
mTabRedirectHandler = new TabRedirectHandler(mActivity) { mTabRedirectHandler = new TabRedirectHandler(mActivity) {
@Override @Override
public boolean shouldStayInChrome(boolean hasExternalProtocol) { public boolean shouldStayInChrome(boolean hasExternalProtocol) {
return true; return !hasExternalProtocol;
} }
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment