[Webkit-unassigned] [Bug 71661] New: Image onload callback fires when image loading disabled.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Nov 7 04:10:50 PST 2011


https://bugs.webkit.org/show_bug.cgi?id=71661

           Summary: Image onload callback fires when image loading
                    disabled.
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
               URL: http://www.ksasq.com/imgload.html
        OS/Version: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Page Loading
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: benm at google.com
                CC: steveblock at google.com


Image onload callbacks are fired even when image loading is disabled with WebCore::Settings::setLoadImagesAutomatically(false).

See http://www.ksasq.com/imgload.html. With images disabled (with Safari I'm using the 'Disable Images' option under the 'Develop' menu), click the show button. Notice that the 'loaded' alert is displayed, and the div gets filled out with the loaded images offsetHeight (of 0). If you then enable image loads, the image will be loaded and displayed automatically, but no onload callback will be fired. Testing in other browsers (FF, IE) shows that when image loading is disabled, no onload callbacks are made (i.e. on the test page, no alert is displayed and the div content remains '???').

Note that this does not reproduce in Chrome which as far as I understand uses it's own mechanism for blocking image loading. It's behavior is as expected - no callbacks fired until you click the button with image loading enabled.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list