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

Issue 606610 link

Starred by 7 users

Issue metadata

Status: Duplicate
Merged: issue 586183
Owner: ----
Closed: Apr 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: Bug



Sign in to add a comment

Chrome stops firing onload events for new Image() objects

Reported by jloun...@shutterfly.com, Apr 26 2016

Issue description

UserAgent: 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
 
Screen Shot 2016-04-25 at 5.38.00 PM.png
327 KB View Download
stall.html
742 bytes View Download

Comment 1 by jianli@chromium.org, Apr 26 2016

Components: -Blink Blink>Image

Comment 2 by mbramw...@gmail.com, 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.

Comment 3 by jkkra...@gmail.com, 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.

Comment 4 by noel@chromium.org, Apr 28 2016

Cc: haraken@chromium.org y...@yoav.ws japhet@chromium.org
Components: Blink>HTML Blink>Loader
Labels: Needs-Bisect

Comment 5 by sigbjo...@opera.com, Apr 28 2016

Mergedinto: 586183
Status: Duplicate (was: Unconfirmed)

Sign in to add a comment