New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 645115 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner:
Last visit 21 days ago
Closed: Jan 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 2
Type: Feature



Sign in to add a comment

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 description

Steps 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
 
Components: UI>Browser>Mobile>CustomTabs
Status: Available (was: Unconfirmed)
Cc: yus...@chromium.org
Owner: ian...@chromium.org

Comment 3 by ian...@chromium.org, Jan 26 2017

Owner: sbirch@chromium.org
Status: WontFix (was: Available)
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.

Comment 4 by k...@kayak.com, 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