⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 233570 in webkit


Ignore:
Timestamp:
Jul 5, 2018, 11:43:28 PM (8 years ago)
Author:
bshafiei@apple.com
Message:

Cherry-pick r233557. rdar://problem/41870910

REGRESSION(r233496): Crash in WebCore::VideoTrack::clearClient()
​https://bugs.webkit.org/show_bug.cgi?id=187377

Reviewed by Simon Fraser.

Clear m_client of an audio track or a video track before removing it from the list
since TrackListBase::m_inbandTracks may hold the last ref to the track.

  • html/HTMLMediaElement.cpp: (WebCore::HTMLMediaElement::removeAudioTrack): (WebCore::HTMLMediaElement::removeVideoTrack):

git-svn-id: ​https://svn.webkit.org/repository/webkit/trunk@233557 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Location:
branches/safari-606.1.24-branch/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/safari-606.1.24-branch/Source/WebCore/ChangeLog

    r233512 r233570  
     12018-07-05  Babak Shafiei  <bshafiei@apple.com>
     2
     3        Cherry-pick r233557. rdar://problem/41870910
     4
     5    REGRESSION(r233496): Crash in WebCore::VideoTrack::clearClient()
     6    https://bugs.webkit.org/show_bug.cgi?id=187377
     7   
     8    Reviewed by Simon Fraser.
     9   
     10    Clear m_client of an audio track or a video track before removing it from the list
     11    since TrackListBase::m_inbandTracks may hold the last ref to the track.
     12   
     13    * html/HTMLMediaElement.cpp:
     14    (WebCore::HTMLMediaElement::removeAudioTrack):
     15    (WebCore::HTMLMediaElement::removeVideoTrack):
     16   
     17   
     18    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@233557 268f45cc-cd09-0410-ab3c-d52691b4dbfc
     19
     20    2018-07-05  Ryosuke Niwa  <rniwa@webkit.org>
     21
     22            REGRESSION(r233496): Crash in WebCore::VideoTrack::clearClient()
     23            https://bugs.webkit.org/show_bug.cgi?id=187377
     24
     25            Reviewed by Simon Fraser.
     26
     27            Clear m_client of an audio track or a video track before removing it from the list
     28            since TrackListBase::m_inbandTracks may hold the last ref to the track.
     29
     30            * html/HTMLMediaElement.cpp:
     31            (WebCore::HTMLMediaElement::removeAudioTrack):
     32            (WebCore::HTMLMediaElement::removeVideoTrack):
     33
    1342018-07-04  Carlos Garcia Campos  <cgarcia@igalia.com>
    235
  • branches/safari-606.1.24-branch/Source/WebCore/html/HTMLMediaElement.cpp

    r233496 r233570  
    40504050void HTMLMediaElement::removeAudioTrack(AudioTrack& track)
    40514051{
     4052    track.clearClient();
    40524053    m_audioTracks->remove(track);
    4053     track.clearClient();
    40544054}
    40554055
    … …  
    40684068void HTMLMediaElement::removeVideoTrack(VideoTrack& track)
    40694069{
     4070    track.clearClient();
    40704071    m_videoTracks->remove(track);
    4071     track.clearClient();
    40724072}
    40734073
Note: See TracChangeset for help on using the changeset viewer.