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

Changeset 94021 in webkit


Ignore:
Timestamp:
Aug 29, 2011, 3:41:45 PM (15 years ago)
Author:
Lucas Forschler
Message:

Merge r93717.

Location:
branches/safari-534.51-branch/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/safari-534.51-branch/Source/WebCore/ChangeLog

    r93716 r94021  
     12011-08-29  Lucas Forschler  <lforschler@apple.com>
     2
     3    Merged 93717
     4
     5    2011-08-24  Sam Weinig  <sam@webkit.org>
     6
     7            JSHTMLImageElement (and associated Node) is abandoned when image load is canceled
     8            <rdar://problem/9925630>
     9            https://bugs.webkit.org/show_bug.cgi?id=66864
     10
     11            Reviewed by Anders Carlsson.
     12
     13            In the JSC bindings, we use HTMLImageElement::hasPendingActivity() (which in turn calls
     14            HTMLImageLoader::haveFiredLoadEvent()) to reason about the liveness of JSHTMLImageElements.
     15            In the case that an image load is canceled, the haveFiredLoadEvent never true, so the
     16            JSHTMLImageElement is kept alive forever (and since it references the global object, it
     17            keeps the entire graph alive as well).
     18
     19            * loader/ImageLoader.cpp:
     20            (WebCore::ImageLoader::notifyFinished):
     21            Set m_firedLoad to true in the case of a canceled load, to reset the state back to
     22            its initial values.
     23
    1242011-08-24  Mark Rowe  <mrowe@apple.com>
    225
  • branches/safari-534.51-branch/Source/WebCore/loader/ImageLoader.cpp

    r87651 r94021  
    226226        return;
    227227
    228     if (resource->wasCanceled())
    229         return;
     228    if (resource->wasCanceled()) {
     229        m_firedLoad = true;
     230        return;
     231    }
    230232
    231233    loadEventSender().dispatchEventSoon(this);
Note: See TracChangeset for help on using the changeset viewer.