history.pushState downloads favicon files
Reported by
damien.d...@spinergie.com,
May 17 2018
|
|||
Issue description
Chrome Version : 66.0.3359.139 (Build officiel) Built on Ubuntu , running on LinuxMint 18.1 (64 bits)
URLs (if applicable) : local file (see below)
Other browsers tested:
Safari: n/a
Firefox: OK
Edge: n/a
What steps will reproduce the problem?
Basically, calling history.pushState downloads favicon files.
(1)
Write following small file on disk
− you need to serve it from a webserver, not just local access :
<html lang="fr-FR">
<head>
<link rel="icon" href="favicon.ico"/>
<script>
function ps() {
console.log('pushstate function')
history.pushState({}, '', 'any_string')
}
</script>
</head>
<body>
<button onclick="ps()"> cliquez-moi ! </button>
</body>
(2)
Put some favicon.ico file in same directory.
(3)
Open Developer tools and select Network tab.
(4)
Click button as asked.
What is the expected result?
Not downloading favicon if it points to the same file.
What happens instead?
(5)
Watch favicon being downloaded every time you click.
,
May 17 2018
,
May 17 2018
To add a bit more context : it's kind of confusing to have this network activity in SPAs, when you use pushState to just keep your app's state serialized.
,
May 18 2018
Able to reproduce the issue on Ubuntu 17.10 using chrome reported version #66.0.3359.139 and latest canary #68.0.3433.0. Issue is not seen in OS-mac and OS-win. This is a non-regression issue as it is observed from M60 old builds. Hence, marking it as untriaged to get more inputs from dev team. Thanks...!!
,
Nov 6
This is still an issue with version 70 on ubuntu 18.04. Even service worker is ignored and the image is fetched from the server on each location update. See https://github.com/tutao/tutanota/issues/654 |
|||
►
Sign in to add a comment |
|||
Comment 1 by dtapu...@chromium.org
, May 17 2018