New issue
Advanced search Search tips

Issue 913550 link

Starred by 2 users

Issue metadata

Status: WontFix
Owner: ----
Closed: Dec 13
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: iOS
Pri: 2
Type: Bug



Sign in to add a comment

Browser makes two requests when downloading zip and strips cookie header on second request

Reported by dawidga...@gmail.com, Dec 10

Issue description

Steps to reproduce the problem:
1. Clone repository https://github.com/dawidgarus/chrome-ios-download-bug
2. Run "npm install"
3. Start server with "node index.js" command
4. Open page host:8000 in Chrome browser for iOS
5. Click "Create" button to initialize session
6. Click "Download" link to download file

What is the expected behavior?
Valid file should be downloaded

What went wrong?
Invalid file was downloaded. After You click "Download" link, first request to the server is made and download prompt opens in the browser. When You click "Download" in the prompt, second request is being made, but this time without "Cookie" header, so user's session is not initialized and 404 page is what actually gets download. Note that the browser doesn't indicate that something went wrong. Only after file is opened by other app (win-zip for example), the app says that the file is invalid.

Did this work before? N/A 

Chrome version: 71.0.3578.77  Channel: stable
OS Version: 10.1.1
Flash Version:
 
Owner: jarhar@chromium.org
Cc: eugene...@chromium.org
Status: Assigned (was: Unconfirmed)
cc'ing Eugene for this download issue.
Components: -Platform>DevTools UI>Browser>Downloads
Owner: ----
Status: Available (was: Assigned)
This doesn't sound related to DevTools
Status: WontFix (was: Available)
Chrome sends 2 requests due limitations of Apple's WebKit API:
https://bugs.webkit.org/show_bug.cgi?id=158801

The second request sends cookie starting from iOS 11:
https://cs.chromium.org/chromium/src/ios/web/download/download_task_impl.mm?q=DownloadTaskImpl&sq=package:chromium&g=0&l=403

Due to another WebKit's limitation, there is no way to send cookie along with the request on iOS 10.

Download should work fine on iOS 11 and 12.


Comment 6 Deleted

Thanks for the response. I accept the answer and don't mind two requests.
Unfortunately, the fix doesn't seem to work correctly on my iOS 11 device and, in my opinion, made it even worse security and privacy wise. Now browser sends outdated cookies, even if the were cleared before!
I created another issue for this: https://bugs.chromium.org/p/chromium/issues/detail?id=915183

Sign in to add a comment