Changeset 134093 in webkit


Ignore:
Timestamp:
Nov 9, 2012 11:39:01 AM (11 years ago)
Author:
tommyw@google.com
Message:

MediaStream API: Don't trigger any object deletion during RTCPeerConnection::stop
https://bugs.webkit.org/show_bug.cgi?id=101586

Reviewed by Adam Barth.

Stop calling stop on the RTCPeerConnectionHandler, and don't delete it, when
ActiveDOMObject::stop is called on RTCPeerConnection. Due to the async nature of the new
API some WebCore objects might be cleaned away which is not allowed at this stage.

This behaviour is not possible to test unfortunately in webkit.

  • Modules/mediastream/RTCPeerConnection.cpp:

(WebCore::RTCPeerConnection::stop):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r134091 r134093  
     12012-11-09  Tommy Widenflycht  <tommyw@google.com>
     2
     3        MediaStream API: Don't trigger any object deletion during RTCPeerConnection::stop
     4        https://bugs.webkit.org/show_bug.cgi?id=101586
     5
     6        Reviewed by Adam Barth.
     7
     8        Stop calling stop on the RTCPeerConnectionHandler, and don't delete it, when
     9        ActiveDOMObject::stop is called on RTCPeerConnection. Due to the async nature of the new
     10        API some WebCore objects might be cleaned away which is not allowed at this stage.
     11
     12        This behaviour is not possible to test unfortunately in webkit.
     13
     14        * Modules/mediastream/RTCPeerConnection.cpp:
     15        (WebCore::RTCPeerConnection::stop):
     16
    1172012-11-09  Joshua Bell  <jsbell@chromium.org>
    218
  • trunk/Source/WebCore/Modules/mediastream/RTCPeerConnection.cpp

    r132420 r134093  
    524524void RTCPeerConnection::stop()
    525525{
    526     if (m_readyState != ReadyStateClosed)
    527         m_peerHandler->stop();
    528 
    529     m_peerHandler.clear();
    530 
    531526    m_iceState = IceStateClosed;
    532527    m_readyState = ReadyStateClosed;
Note: See TracChangeset for help on using the changeset viewer.