Bug 28732 - r47744 causes media/video-controls-with-mutation-event-handler.html to crash
Summary: r47744 causes media/video-controls-with-mutation-event-handler.html to crash
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC All
: P2 Normal
Assignee: Eric Carlson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-25 22:08 PDT by Eric Carlson
Modified: 2009-08-25 22:50 PDT (History)
2 users (show)

See Also:


Attachments
proposed patch (2.08 KB, patch)
2009-08-25 22:43 PDT, Eric Carlson
mitz: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Carlson 2009-08-25 22:08:00 PDT
https://bugs.webkit.org/show_bug.cgi?id=28241 caused media/video-controls-with-mutation-event-handler.html to begin crashing on Windows, eg. http://build.webkit.org/results/Windows%20Release%20(Tests)/r47770%20(3743)/results.html. 

The crash happens when the MediaControlVolumeSliderElement constructor calls setAttribute() in a page with registered mutation event listeners. setAttribute() causes a synchronous event to be fired immediately and the event destructor derefs the event target (the MediaControlVolumeSliderElement) so the element is destroyed before the constructor returns.
Comment 1 Eric Carlson 2009-08-25 22:43:05 PDT
Created attachment 38598 [details]
proposed patch
Comment 2 Eric Carlson 2009-08-25 22:50:29 PDT
http://trac.webkit.org/changeset/47774