WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
66864
JSHTMLImageElement (and associated Node) is abandoned when image load is canceled
https://bugs.webkit.org/show_bug.cgi?id=66864
Summary
JSHTMLImageElement (and associated Node) is abandoned when image load is canc...
Sam Weinig
Reported
2011-08-24 10:28:31 PDT
JSHTMLImageElement (and associated Node) is abandoned when image load is canceled
Attachments
Patch
(1.68 KB, patch)
2011-08-24 10:35 PDT
,
Sam Weinig
andersca
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Sam Weinig
Comment 1
2011-08-24 10:34:07 PDT
In the JSC bindings, we use HTMLImageElement::hasPendingActivity() (which in turn calls HTMLImageLoader::haveFiredLoadEvent()) to reason about the liveness of JSHTMLImageElements. In the case that an image load is canceled, the haveFiredLoadEvent never true, so the JSHTMLImageElement is kept alive forever (and since it references the global object, it keeps the entire graph alive as well).
Sam Weinig
Comment 2
2011-08-24 10:35:48 PDT
Created
attachment 105015
[details]
Patch
Sam Weinig
Comment 3
2011-08-24 10:37:38 PDT
<
rdar://problem/9925630
>
Sam Weinig
Comment 4
2011-08-24 11:28:16 PDT
Committed
r93717
: <
http://trac.webkit.org/changeset/93717
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug