New issue
Advanced search Search tips

Issue 709986 link

Starred by 6 users

Issue metadata

Status: ExternalDependency
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: iOS
Pri: 3
Type: Bug



Sign in to add a comment

Can't open blob URLs

Reported by steind...@gmail.com, Apr 10 2017

Issue description

Steps to reproduce the problem:
1. Open the attached HTML
2. Click on the link

It creates a new File with blob content and filename specified in the constructor. The href attribute of the link (with download attribute) is set to the URI of the blob.

What is the expected behavior?
The browser should open the blob and allow it to be downloaded.

What went wrong?
Nothing happens when clicking the link.

Did this work before? N/A 

Does this work in other browsers? Yes

Chrome version: 57.0.2987.137  Channel: stable
OS Version: 10.3.2
Flash Version: 

Safari on iOS 10.3.2 opens the blob and allows it to be downloaded (although the filename is unknown).
Firefox shows an error message.

Chrome Android can download the file without any problems.
 
index.html
298 bytes View Download
Components: -Blink>FileAPI Mobile>iOSWebView
Labels: -Hotlist-Interop
Owner: eugene...@chromium.org
Status: Assigned (was: Unconfirmed)
Components: -Mobile>iOSWebView UI>Browser>Downloads
Owner: gch...@chromium.org
Blockedon: 780646
Blockedon: -780646
Blockedon: 791806

Comment 7 by gch...@chromium.org, Dec 21 2017

Owner: eugene...@chromium.org
Reassigning my bugs.

Comment 8 by gch...@chromium.org, Dec 21 2017

Cc: eugene...@chromium.org
Owner: ----
Status: Available (was: Assigned)
Blockedon: -791806
Labels: -Pri-2 Pri-3
blob URLs are not currently supported
Status: ExternalDependency (was: Available)
WKWebView does not have public API which would allow Chrome to download blob URLs. Mobile Safari probably use private API for downloads.

radar://26818508
WebKit bug: https://bugs.webkit.org/show_bug.cgi?id=158801
Summary: Can't open blob URLs (was: Can't open File URIs in iOS Chrome)
It still does not work in Chrome on iOS:
Chrome version: 71.0.3578.89  Channel: stable
OS Version: 12.1.1

But, it does work in Firefox on iOS. If Safari would use private API Firefox wouldn't be able to do this. So there is a solution.

I tested it with this Google Example Code: http://html5-demos.appspot.com/static/a.download.html
Thanks for the information. Firefox displays the blob URL, instead of downloading it. 

Chrome for iOS should be able to display blob URLs starting from M72:
https://bugs.chromium.org/p/chromium/issues/detail?id=847073

Neither Chrome nor Firefox can download this blob URL.

Sign in to add a comment