Android Chrome Custom Tabs should have ability to add a placeholder image/animation in middle of page
Reported by
k...@kayak.com,
Sep 8 2016
|
|||
Issue descriptionSteps to reproduce the problem: 1. Try adding Android Chrome Custom Tab support 2. There's a nice progress bar, but some pages take a while to load so you end up staring at a white screen w/ a progress bar up top. What is the expected behavior? Would like to be able to put some sort of "loading..." message or animation in the middle of all that white space What went wrong? no API to do this Did this work before? N/A Chrome version: 52.0.2743.98 Channel: n/a OS Version: Android 6.0 Flash Version: Shockwave Flash 22.0 r0
,
Sep 9 2016
,
Jan 26 2017
Having the ability to show some UI in the middle of a page sounds very fishy and dangerous. One thing that Custom Tabs is different than WebView is that WebView does not carry users' cookies and history, yet CCT does. Therefore allowing such potential phishing is almost certainly a bad idea. CCT now has fully customizable remoteview based bottom bars that clients can use to customize the UI. IIUC this is what we can offer right now. I will close this bug for now as it is unlikely that we will provide such API. Yet I also reassigned this bug to our PM and see if he has some plans for this in the future.
,
Jan 26 2017
Thanks Ian. There would never be any form fields or links on the loading page. I can't think of any other way to do it. But I also have no idea how you'd enforce this in a RemoteView :-( Thanks for thinking about it. Regarding cookies, it would also be nice to be able to overwrite cookies (write from Android app, but not read). Our use case is synchronizing the Android app's session w/ the CCT to our servers. It's another fairly common use case that webviews are useful for that CCT doesn't allow...hopefully only allowing write access won't be a security issue... |
|||
►
Sign in to add a comment |
|||
Comment 1 by candr...@chromium.org
, Sep 9 2016Status: Available (was: Unconfirmed)