Windows Chrome gets stuck on Local pages' Resource loading
Reported by
cyang.t...@gmail.com,
Aug 29 2017
|
||||
Issue descriptionUserAgent: 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:
,
Aug 29 2017
,
Aug 30 2017
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.
,
Sep 1 2017
Thanks. How about skipping GetFileAttributesEx() for "\\hostname\foo" as a temporary workaround?
,
Sep 1 2017
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.
,
Oct 5 2017
yeah, file:// URLs can have hostnames, so this is work as intended.. |
||||
►
Sign in to add a comment |
||||
Comment 1 by mmenke@chromium.org
, Aug 29 2017Labels: -Pri-2 Pri-3