Summary: | REGRESSION: Repro crash in <script> onload event dispatch | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | mitz | ||||
Component: | New Bugs | Assignee: | Nobody <webkit-unassigned> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | ap, ddkilzer, miles_b | ||||
Priority: | P1 | Keywords: | HasReduction, InRadar, Regression | ||||
Version: | 420+ | ||||||
Hardware: | Mac | ||||||
OS: | OS X 10.4 | ||||||
URL: | http://apartmentcities.com/Apartments/map.asp?apt=12606 | ||||||
Attachments: |
|
Description
mitz
2006-09-24 13:29:10 PDT
The problem appears to be a script that deletes its own <script> element. Looks like the fix is for HTMLScriptElement::notifyFinished() to protect itself with a ref()/deref() (it will also be cleaner to change the cs->deref(this) to m_cachedScript->deref(this) only if m_cachedScript is still non-0). Other callers to HTMLScriptElement::evaluateScript() appear to be safe, since it's the last thing they call. Created attachment 10758 [details]
Reduction (will crash)
Crashes run-webkit-tests immediately, in Safari you need to reload to get the crash (might be a good junk/bad junk thing).
radar 4701860 *** Bug 11837 has been marked as a duplicate of this bug. *** Fixed (completely independently of this Bugzilla bug) by Anders in r18335. (In reply to comment #3) > radar 4701860 Per r18335, also: <rdar://problem/4726407> [9A255] Crash in WebCore::EventTargetNode::dispatchEvent http://trac.webkit.org/projects/webkit/changeset/18335 |