Issue metadata
Sign in to add a comment
|
Chrome stops firing onload events for new Image() objects
Reported by
jloun...@shutterfly.com,
Apr 26 2016
|
||||||||||||||||||||||||
Issue descriptionUserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.86 Safari/537.36 Steps to reproduce the problem: 1. Open a new Chrome tab 2. Open the Developer Tools 3. Ensure 'Disable cache' is enabled 4. Load the attached HTML file 5. Monitor the Console output What is the expected behavior? This script generates 100 unique Image objects, and sets each one with a unique src attribute. You should see 100 messages printed to the console, from 100 successful onload events. If you check the Network log, you will see all 100 image requests always complete. What went wrong? Only about half (usually 42) onload events fire, out of the 100 generated. If you switch the script to SSL, and load images from a secure host as well, the script dies much more quickly. Sometimes 0 onload events fire, but usually 2 to 4. I have attached an screenshot of the Console and Network log when loading images via SSL. In this example you will see I initiated 50 network requests for images. All 50 completed successfully, but only 5 onload events were fired. Repeatedly refreshing this page gives varying results. Sometimes zero, sometimes 12, but it is extremely rare to see the full 50. Did this work before? Yes Version 49 and earlier Chrome version: 50.0.2661.86 Channel: stable OS Version: OS X 10.11.3 Flash Version: Shockwave Flash 21.0 r0
,
Apr 26 2016
I'm having the same issue with Version 50.0.2661.87 m (64-bit windows10) when trying to load larger images via new Image(). Neither onload or onerror handlers are executed, the image simply does not load. No issues prior to v50 and Version 52.0.2715.0 canary (64-bit windows 10) also works as expected.
,
Apr 27 2016
I'm seeing this on a production site with a lot of images. I've heard reports from other users too. It seems to happen most often when many loads happen in quick succession. Chrome 50.0.2661.86 on Mac OS X 10.10.
,
Apr 28 2016
,
Apr 28 2016
|
|||||||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||||||
Comment 1 by jianli@chromium.org
, Apr 26 2016