Bug 100047

Summary: Clear m_mediaSource reference when the MediaSource is closed
Product: WebKit Reporter: Aaron Colwell <acolwell>
Component: MediaAssignee: Aaron Colwell <acolwell>
Status: RESOLVED FIXED    
Severity: Normal CC: eric.carlson, feature-media-reviews, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

Aaron Colwell
Reported 2012-10-22 16:22:20 PDT
The existing code in HTMLMediaElement holds the reference to m_mediaSource longer then it needs to. The object shouldn't be used again after it has transitioned to "closed" so I'm adding code to clear the reference when this transition happens.
Attachments
Patch (2.08 KB, patch)
2012-10-22 16:35 PDT, Aaron Colwell
no flags
Aaron Colwell
Comment 1 2012-10-22 16:35:11 PDT
Early Warning System Bot
Comment 2 2012-10-22 16:54:44 PDT
Darin Adler
Comment 3 2012-10-22 18:23:29 PDT
Comment on attachment 170019 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=170019&action=review > Source/WebCore/ChangeLog:12 > + No new tests because the change isn't visible to JavaScript. Understood that it is not “visible to JavaScript”. What end user detectable effect does it have?
Aaron Colwell
Comment 4 2012-10-23 07:26:06 PDT
(In reply to comment #3) > (From update of attachment 170019 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=170019&action=review > > > Source/WebCore/ChangeLog:12 > > + No new tests because the change isn't visible to JavaScript. > > Understood that it is not “visible to JavaScript”. What end user detectable effect does it have? I don't believe it has an end user detectable effect. This change simply makes the object state more consistent so code can't access the object when it isn't supposed to.
Aaron Colwell
Comment 5 2012-10-23 07:30:12 PDT
Comment on attachment 170019 [details] Patch resetting commit-queue? since the qt-wk2 failure doesn't appear to be related to my change.
WebKit Review Bot
Comment 6 2012-10-23 16:15:32 PDT
Comment on attachment 170019 [details] Patch Clearing flags on attachment: 170019 Committed r132280: <http://trac.webkit.org/changeset/132280>
WebKit Review Bot
Comment 7 2012-10-23 16:15:35 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.