Changeset 94021 in webkit
- Timestamp:
- Aug 29, 2011, 3:41:45 PM (15 years ago)
- Location:
- branches/safari-534.51-branch/Source/WebCore
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
loader/ImageLoader.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/safari-534.51-branch/Source/WebCore/ChangeLog
r93716 r94021 1 2011-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 1 24 2011-08-24 Mark Rowe <mrowe@apple.com> 2 25 -
branches/safari-534.51-branch/Source/WebCore/loader/ImageLoader.cpp
r87651 r94021 226 226 return; 227 227 228 if (resource->wasCanceled()) 229 return; 228 if (resource->wasCanceled()) { 229 m_firedLoad = true; 230 return; 231 } 230 232 231 233 loadEventSender().dispatchEventSoon(this);
Note:
See TracChangeset
for help on using the changeset viewer.