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

Issue 775797 link

Starred by 2 users

Issue metadata

Status: WontFix
Owner: ----
Closed: Apr 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 2
Type: Bug



Sign in to add a comment

PWA opening all links in Custom Tab and there is now way to prevent it

Reported by xruiz...@gmail.com, Oct 18 2017

Issue description

Steps to reproduce the problem:
1. Load in links and content dynamically through PHP instead of using JavaScript to make requests
2. Click on link on PWA in Android

What is the expected behavior?
PWA will simply redirect user accordingly instead of opening new custom tab.

What went wrong?
Any links that are clicked in the page open the Chrome custom tab and there is no way to prevent the opening of this tab and just have the PWA load the website. All the links used are within the same domain and relative links do not work, either. 

Did this work before? N/A 

Does this work in other browsers? Yes

Chrome version:   Channel: n/a
OS Version: 
Flash Version: 

component:UI>Browser>Mobile>CustomTabs

To be specific, I have created a PWA that helps students track volunteer hours. Once signed in, they can click on the specific entry and edit it. However, this abruptly opes a custom tab and reduces the screen real estate dramatically and ruins the experience. All these links are to the same website but to different parts. 

I am using the service worker and the PWA design very minimally as I created most of the site in PHP so the site does not have a static app shell. I suspect that loading the app shell everytime instead of requesting resources/content is causing this problem. However, I highly request there be a way to prevent Chrome custom tabs from opening.

Safari had this same problem until I added an event listener for all clicks on links, prevented the default, and changed the window.href manually. This solved the problem but chrome must be listening for this as well to open the custom tab.
 
Cc: msrchandra@chromium.org nyerramilli@chromium.org sandeepkumars@chromium.org
Labels: Needs-triage-Mobile Needs-Feedback
@xruizify: Thanks for the report!!

Could you please provide us sample site or .apk file, chrome://version, details of your device and if possible please attach a screencast to check the issue form our end

Thanks!!

Comment 2 Deleted

Components: UI>Browser>Mobile>CustomTabs
Labels: Triaged-Mobile
Status: WontFix (was: Unconfirmed)
Closing this issue as there is no response from the reporter. Please update your Chrome to #65.0.3325.109 and feel free to file a new issue if the issue is still observed.
Thanks!

Sign in to add a comment