New issue
Advanced search Search tips

Issue 712206 link

Starred by 0 users

Issue metadata

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



Sign in to add a comment

Download manager is displayed when opening invalid data: URLs

Project Member Reported by srikanthg@chromium.org, Apr 17 2017

Issue description

App Version: 58.0.3029.76 beta
iOS Version: 10.3.2, 10.2
Device: iPhone7, iPad 
URL: data:test

Steps to reproduce:
  1. Launch Google Chrome
  2. Type data:test in omnibox and Go

Observed results: Download Manager UI is displayed.

Expected results: SIte cannot be reached error page should be displayed

Number of times you were able to reproduce: 5/5
Bug reproducible after clean install: Yes
Bug reproducible after clearing cache and cookies: Yes
Bug reproducible on Chrome Mobile on Android: Not tested
Bug reproducible on Safari/Firefox: Firefox: Firefox doesn't support downloads prompt is displayed, Safari: Page is in loading state forever.
Bug reproducible on current stable build (App Version, iOS Version):  M57 YES
Bug reproducible on the current beta channel build (App Version, iOS Version): M58 YES
Autofill bugs: Bug reproducible on Chrome desktop? Site Not reachable error page displayed.

Link to video/image: https://drive.google.com/file/d/0B-xmXLQhjeKualY1cC1NMzNBMFU/view 
 

Comment 1 by edchin@chromium.org, Apr 17 2017

Components: UI>Browser>Downloads
Labels: M-60
Owner: gch...@chromium.org
Status: Assigned (was: Untriaged)
Blockedon: 780646
Labels: -M-60
Blockedon: -780646
Blockedon: 791806

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

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

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

Cc: eugene...@chromium.org
Owner: ----
Status: Available (was: Assigned)
Labels: -Pri-2 Pri-3
Technically the URL is invalid due to the lack of a comma (the shortest valid data uri is "data:,") but this doesn't seem like a worthwhile issue to fix.
Cc: -eugene...@chromium.org
Labels: M-67
Owner: eugene...@chromium.org
Status: Assigned (was: Available)
Will be fixed in New Download Manager UI in M67.
Labels: Proj-New-Download-Manager
Status: Available (was: Assigned)
Cc: eugene...@chromium.org
Owner: ----
Labels: -M-67 M-68
Status: Fixed (was: Available)
Project Member

Comment 14 by bugdroid1@chromium.org, Sep 26

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/66265f84e4e76aa5db9a5fed90b1347cc04181e8

commit 66265f84e4e76aa5db9a5fed90b1347cc04181e8
Author: Eugene But <eugenebut@chromium.org>
Date: Wed Sep 26 16:48:00 2018

Support data: URLs in iOS Download Manager.

data: URLs can be used for Calendar events and Contacts. These URLs
are supported by Safari and Chrome on other platforms.

This change will regress crbug.com/712206 (which is a minor bug),
so CRWWebControllerDownloadTest.DataUrlResponse test was removed.

Also updated FakeDownloadTaskImplDelegate to set mock expectations
earlier, because CreateSession is now called much later to avoid
creating sessions for data:// URLs.

Bug: 712206, 666211,  604533 
Cq-Include-Trybots: luci.chromium.try:ios-simulator-cronet;luci.chromium.try:ios-simulator-full-configs
Change-Id: Iddbd7b8e58b781c1d093e35539db8fe5ec8841c4
Reviewed-on: https://chromium-review.googlesource.com/1244976
Commit-Queue: Eugene But <eugenebut@chromium.org>
Reviewed-by: Sylvain Defresne <sdefresne@chromium.org>
Cr-Commit-Position: refs/heads/master@{#594346}
[modify] https://crrev.com/66265f84e4e76aa5db9a5fed90b1347cc04181e8/ios/web/download/download_task_impl.h
[modify] https://crrev.com/66265f84e4e76aa5db9a5fed90b1347cc04181e8/ios/web/download/download_task_impl.mm
[modify] https://crrev.com/66265f84e4e76aa5db9a5fed90b1347cc04181e8/ios/web/download/download_task_impl_unittest.mm
[modify] https://crrev.com/66265f84e4e76aa5db9a5fed90b1347cc04181e8/ios/web/web_state/ui/crw_web_controller.mm
[modify] https://crrev.com/66265f84e4e76aa5db9a5fed90b1347cc04181e8/ios/web/web_state/ui/crw_web_controller_unittest.mm

Blockedon: -791806
Labels: -Proj-New-Download-Manager
Status: Available (was: Fixed)
This is now reproducible again. 

Sign in to add a comment