Changeset 18335 in webkit
- Timestamp:
- Dec 19, 2006, 10:00:38 PM (18 years ago)
- Location:
- trunk
- Files:
-
- 3 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r18332 r18335 1 2006-12-19 Anders Carlsson <acarlsson@apple.com> 2 3 Reviewed by Adele. 4 5 <rdar://problem/4726407> 6 [9A255] Crash in WebCore::EventTargetNode::dispatchEvent 7 8 * fast/dom/resources/script-element-gc.js: Added. 9 * fast/dom/script-element-gc-expected.txt: Added. 10 * fast/dom/script-element-gc.html: Added. 11 1 12 2006-12-19 Justin Garcia <justin.garcia@apple.com> 2 13 -
trunk/WebCore/ChangeLog
r18333 r18335 1 2006-12-19 Anders Carlsson <acarlsson@apple.com> 2 3 Reviewed by Adele. 4 5 <rdar://problem/4726407> 6 [9A255] Crash in WebCore::EventTargetNode::dispatchEvent 7 8 * html/HTMLScriptElement.cpp: 9 (WebCore::HTMLScriptElement::notifyFinished): 10 Ref the script element while running the script since it can be freed 11 when executing the script. 12 1 13 2006-12-19 Darin Adler <darin@apple.com> 2 14 -
trunk/WebCore/html/HTMLScriptElement.cpp
r17652 r18335 146 146 assert(cs == m_cachedScript); 147 147 148 // Evaluating the script could lead to a garbage collection which 149 // can delete the script element so we need to protect it. 150 RefPtr<HTMLScriptElement> protect(this); 151 148 152 if (cs->errorOccurred()) 149 153 dispatchHTMLEvent(errorEvent, true, false);
Note:
See TracChangeset
for help on using the changeset viewer.