⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 93793 in webkit


Ignore:
Timestamp:
Aug 25, 2011, 9:50:35 AM (15 years ago)
Author:
weinig@apple.com
Message:

JSHTMLImageElement (and associated Node) is abandoned when image load is canceled via beforeload
<rdar://problem/9925630>
https://bugs.webkit.org/show_bug.cgi?id=66906

Reviewed by Darin Adler.

  • loader/ImageLoader.cpp:

(WebCore::ImageLoader::dispatchPendingBeforeLoadEvent):
Very similar fix to the one in r93717 except this patches the case where the image load was
canceled via beforeload.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r93792 r93793  
     12011-08-25  Sam Weinig  <sam@webkit.org>
     2
     3        JSHTMLImageElement (and associated Node) is abandoned when image load is canceled via beforeload
     4        <rdar://problem/9925630>
     5        https://bugs.webkit.org/show_bug.cgi?id=66906
     6
     7        Reviewed by Darin Adler.
     8
     9        * loader/ImageLoader.cpp:
     10        (WebCore::ImageLoader::dispatchPendingBeforeLoadEvent):
     11        Very similar fix to the one in r93717 except this patches the case where the image load was
     12        canceled via beforeload.
     13
    1142011-08-25  John Bates  <jbates@google.com>
    215
  • trunk/Source/WebCore/loader/ImageLoader.cpp

    r93717 r93793  
    298298        m_image = 0;
    299299    }
     300
    300301    loadEventSender().cancelEvent(this);
     302    m_firedLoad = true;
    301303   
    302304    if (m_element->hasTagName(HTMLNames::objectTag))
Note: See TracChangeset for help on using the changeset viewer.