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

Issue 760096 link

Starred by 2 users

Issue metadata

Status: WontFix
Owner: ----
Closed: Oct 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 3
Type: Bug



Sign in to add a comment

Windows Chrome gets stuck on Local pages' Resource loading

Reported by cyang.t...@gmail.com, Aug 29 2017

Issue description

UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.101 Safari/537.36

Example URL:

Steps to reproduce the problem:
1. Open www.sohu.com
2. right click "save as" -> "Webpage, Complete"
3. Load the downloaded page on Window and Linux Chrome separately

What is the expected behavior?

What went wrong?
Windows Chrome costs more time and gets stuck if you open a new tab at the same time.

Did this work before? N/A 

Chrome version: 60.0.3112.101  Channel: n/a
OS Version: 10.0
Flash Version:
 
Linux.png
832 KB View Download
Windows.JPG
393 KB View Download

Comment 1 by mmenke@chromium.org, Aug 29 2017

Components: Blink>SavePage
Labels: -Pri-2 Pri-3
Loading it as a file ends up trying to load bogus resources, like "file://x.jd.com/mkt/pcwap?&callback=dsp_1504020242543&r=1504020242544".  On windows, looks like these bogus URLs sometimes take really long to fail (20+ seconds).  We're probably stuck in some platform API call.

Comment 2 by mmenke@chromium.org, Aug 29 2017

Status: Untriaged (was: Unconfirmed)

Comment 3 by mmenke@chromium.org, Aug 30 2017

Components: -Internals>Network Blink>SecurityFeature
I've confirmed that "file://hostname/foo" is mapped to \\hostname\foo, and the reason it takes so long is that the Windows method GetFileAttributesEx() takes a long time when looking for non-existent Windows shares.

I am a bit surprised that we let renderers request files on different network shares, but I think if we allow them to do this, there's nothing worth doing about Windows' long timeout when looking for non-existent network shares, so this is expected behavior when requesting these sorts of file URLs.

I defer to the SavePage team on whether the save page logic should be smarter, and the security team on whether we should allow pages on file URLs to request files on different network shares.
Thanks.
How about skipping GetFileAttributesEx() for "\\hostname\foo" as a temporary workaround?
We need to know if it's a file or directory.  Even if we just tried and open it directly, Windows would have the same delay trying to find it on a network share.
Cc: mkwst@chromium.org
Status: WontFix (was: Untriaged)
yeah, file:// URLs can have hostnames, so this is work as intended..

Sign in to add a comment