WebView fails OAuth2 dance in webview embedded in Android app on ChromeOS |
||||||
Issue descriptionChrome Version: 67.0.3396.9 (beta) on Kevin What steps will reproduce the problem? 1. Install Jurassic World Android app 2. Install Chrome Android app 3. Open Jurassic World 4. Try to log in into Facebook inside the game What is the expected result? The webview redirect works What happens instead? The webview is open inside the Chrome or Chrome on Android app (depending on user selection). The user can do the OAuth2 dance but the redirection to the app consistently fails.
,
May 24 2018
Adding a few people who may know more about redirects, and Android+CrOS. Is this an Android WebView that's giving the problem? (I'm assuming yes ...)
,
May 24 2018
+boliu for triage.
,
May 24 2018
I uninstalled Chrome Android Beta, and after it unconditionally used ChromeOS's Chrome instead of the Android WebView that I would expect it to embed. In practice it looks like the attached screenshot.
,
May 24 2018
It's not very clear what the problem is here. Have you run the same app on a real android device to see what it does there? What would be ideal is a screen recording of what happens in each case to see where the process diverges.. WebView is unlikely to actually be involved in the issue here - webview is either used or it's not, we have no control over whether the app launches a browser and we never do so ourselves.
,
May 24 2018
Here's how it looks on a pixel 1, the WebView is correctly embedded.
,
May 24 2018
OK, so this probably will require a bit of log inspection/fiddling to work out why the app is behaving differently; I don't think this is anything to do with the WebView itself, though. If a browser is being launched instead of the webview loading, then that's likely just the app doing it :| Unassigning Bo so this goes back into our bug cop queue (it's likely to be looked at sooner that way).
,
May 25 2018
> it unconditionally used ChromeOS's Chrome instead of the Android WebView that I would expect it to embed. Uhh.. I have zero experience with android apps on chromeos. What do you mean by this exactly? Did chromeos implement their own drop-in replacement for android.webkit.* classes that hooks directly to chromeos's chrome?
,
May 29 2018
Not as far as I know; WebView works as normal on cros. This looks like the app is doing somethign different, possibly because the results of trying to resolve some particular intent are different.
,
Jun 8 2018
Didn't have time this week. But if any webview bugcop want to pick this up, it looks like the easiest instruction for getting android in chromeos environment is go/cros-arc++-in-qemu. Don't even need an actual device.
,
Aug 3
We need to take care of this issue as far as it remains in the bugcop queue.
,
Aug 21
I wasn't able to reproduce this under qemu with ChromeOS-R70-10972.0.0-betty but I was able to reproduce on a samus with 10718.62.0 and latest beta webview (log indicates same app version and webview 69.0.3497.41 in both cases). In the former case, the FB login happened entirely within the app webview. In the latter case I got the intent picker to disambiguate between chrome and chrome beta. Logcat indicated that that an intent was being fired to org.chromium.arc.chrome/.ChromeBrowserProxyActivity for a facebook URL. that opened in chrome. Eventually got to a dialog stating "Google Chrome OS can't open this page."
,
Aug 21
Can also reproduce on R70-10974.0.0-samus - so this does appear to be an ongoing issue.
,
Aug 21
Could someone working on ARC++ please triage this? it doesn't seem to be a WebView issue, based upon the intent to chrome.
,
Aug 21
+hashimoto wild guess, is this due to our custom tabs impl?
,
Aug 21
It cannot be our custom tabs impl because it's not implemented yet :) > Logcat indicated that that an intent was being fired to org.chromium.arc.chrome/.ChromeBrowserProxyActivity for a facebook URL. Do you have any other details about the intent? (e.g. action name and extra values) > that opened in chrome. Eventually got to a dialog stating "Google Chrome OS can't open this page." Is this the app developer's web site rejecting the access because the device is running Chrome OS? Does it make a difference if you enable the device mode from the developer tools?
,
Aug 22
Hi. I have similar issue but not same exactly.
App: Candy crush series / toy blast / tubi tv / etc...
Problem : When i try facebook login in the app,
webview and chrome browser is opened.
However webview show just white page.
And opened chrome browser show
'Log into Facebook
Can't Load URL
This domain of this URL isn't included in the app's domain...."
,
Aug 22
My chromebook is Asus flip and Samsung chromebook plus v2. OS version is R69 beta (platform version : 10895.21) |
||||||
►
Sign in to add a comment |
||||||
Comment 1 by mar...@chromium.org
, May 24 2018