Changeset 202238 in webkit


Ignore:
Timestamp:
Jun 20, 2016, 1:38:41 PM (9 years ago)
Author:
eric.carlson@apple.com
Message:

Crash in PlatformMediaSession::clientWillPausePlayback
https://bugs.webkit.org/show_bug.cgi?id=158953
<rdar://problem/26121125>

Reviewed by Jer Noble.

No new tests, I have not been able to reproduce this in a test.

  • html/HTMLMediaElement.cpp:

(WebCore::HTMLMediaElement::stop): Ref the element before calling stopWithoutDestroyingMediaPlayer

because updatePlaybackControlsManager can release the last reference and cause the
destructor to be called.

(WebCore::HTMLMediaElement::suspend): Ditto.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r202236 r202238  
     12016-06-20  Eric Carlson  <eric.carlson@apple.com>
     2
     3        Crash in PlatformMediaSession::clientWillPausePlayback
     4        https://bugs.webkit.org/show_bug.cgi?id=158953
     5        <rdar://problem/26121125>
     6
     7        Reviewed by Jer Noble.
     8
     9        No new tests, I have not been able to reproduce this in a test.
     10
     11        * html/HTMLMediaElement.cpp:
     12        (WebCore::HTMLMediaElement::stop): Ref the element before calling stopWithoutDestroyingMediaPlayer
     13          because updatePlaybackControlsManager can release the last reference and cause the
     14          destructor to be called.
     15        (WebCore::HTMLMediaElement::suspend): Ditto.
     16
    1172016-06-20  Alex Christensen  <achristensen@webkit.org>
    218
  • trunk/Source/WebCore/html/HTMLMediaElement.cpp

    r202183 r202238  
    50935093    LOG(Media, "HTMLMediaElement::stop(%p)", this);
    50945094
     5095    Ref<HTMLMediaElement> protectedThis(*this);
    50955096    stopWithoutDestroyingMediaPlayer();
    50965097
     
    51105111{
    51115112    LOG(Media, "HTMLMediaElement::suspend(%p)", this);
     5113    Ref<HTMLMediaElement> protectedThis(*this);
    51125114
    51135115    switch (why)
Note: See TracChangeset for help on using the changeset viewer.