New issue
Advanced search Search tips

Issue 590636 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner:
Closed: Mar 2016
Cc:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 2
Type: Bug-Regression



Sign in to add a comment

[Chrome][M48][Android 6.0] Unavailable to open URL more than twice

Project Member Reported by seiyon.p...@lge.com, Feb 29 2016

Issue description

Steps to reproduce the problem:
1. Email with the url (http://waptb.lge.com/w/jinkyu/download/intent.html)is received
2. Open email app > Click the received email
3. Click "http://waptb.lge.com/w/jinkyu/download/HelloTest.apk" in email to download test app
3. Download & install downloaded test app
4. Revisit the email app > open the email same as step 2
5. Click the url in the email to execute test app
6. Press back key to come back from test app to email app
7. Click again the url in email

What is the expected behavior?
Test app should be executed.

What went wrong?
Test app is not executed, but Chrome is executed.

Did this work before? N/A 

Chrome version: 48.0.2564.116  Channel: stable
OS Version: 6.0
Flash Version: Shockwave Flash 20.0 r0
 
Cc: tedc...@chromium.org
Labels: Needs-Feedback
Thanks for the report! Can you provide following details for further triaging?
1. Device Model:
2. Bug report (if possible)
Cc: changwan@chromium.org
Owner: changwan@chromium.org
Status: WontFix (was: Unconfirmed)
Why do you we expect to open the test app?

When you click on .exe link twice on desktop chrome, you get an extra copy of exe file. Execution of the exe file is done separately. Also, if exe file itself is just a set-up file, clicking on it twice won't launch the installed executable: it will set up twice instead.

By the same token, I don't understand why the reporter expects chrome to open the installed app.

On Chrome, we have a logic to prevent duplicate file downloading, and that's why you're seeing chrome. I'm not sure if we want to change this behavior even when url came from another app.

If you want to change this behavior (e.g. have android download manager take control), you need to override the following function in the email app. Otherwise, activity manager will jump in and handle the intent by itself.
http://developer.android.com/reference/android/webkit/WebViewClient.html#shouldOverrideUrlLoading(android.webkit.WebView, java.lang.String)

Sign in to add a comment