Changeset 202378 in webkit


Ignore:
Timestamp:
Jun 23, 2016 8:10:46 AM (8 years ago)
Author:
adam.bergkvist@ericsson.com
Message:

WebRTC: Align 'update ICE connection/gathering state' steps with the WebRTC 1.0 specification
https://bugs.webkit.org/show_bug.cgi?id=159054

Reviewed by Eric Carlson.

Add checks for same state and closed RTCPeerConnection in the 'update ICE connection state'
and 'update ICE gathering state' routines as described in [1].

[1] https://w3c.github.io/webrtc-pc/archives/20160513/webrtc.html#update-ice-gathering-state

No change in current behavior.

  • Modules/mediastream/RTCPeerConnection.cpp:

(WebCore::RTCPeerConnection::updateIceGatheringState):
(WebCore::RTCPeerConnection::updateIceConnectionState):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r202376 r202378  
     12016-06-23  Adam Bergkvist  <adam.bergkvist@ericsson.com>
     2
     3        WebRTC: Align 'update ICE connection/gathering state' steps with the WebRTC 1.0 specification
     4        https://bugs.webkit.org/show_bug.cgi?id=159054
     5
     6        Reviewed by Eric Carlson.
     7
     8        Add checks for same state and closed RTCPeerConnection in the 'update ICE connection state'
     9        and 'update ICE gathering state' routines as described in [1].
     10
     11        [1] https://w3c.github.io/webrtc-pc/archives/20160513/webrtc.html#update-ice-gathering-state
     12
     13        No change in current behavior.
     14
     15        * Modules/mediastream/RTCPeerConnection.cpp:
     16        (WebCore::RTCPeerConnection::updateIceGatheringState):
     17        (WebCore::RTCPeerConnection::updateIceConnectionState):
     18
    1192016-06-23  Adam Bergkvist  <adam.bergkvist@ericsson.com>
    220
  • trunk/Source/WebCore/Modules/mediastream/RTCPeerConnection.cpp

    r202339 r202378  
    458458{
    459459    scriptExecutionContext()->postTask([=](ScriptExecutionContext&) {
     460        if (m_signalingState == SignalingState::Closed || m_iceGatheringState == newState)
     461            return;
     462
    460463        m_iceGatheringState = newState;
    461 
    462464        dispatchEvent(Event::create(eventNames().icegatheringstatechangeEvent, false, false));
    463465    });
     
    467469{
    468470    scriptExecutionContext()->postTask([=](ScriptExecutionContext&) {
     471        if (m_signalingState == SignalingState::Closed || m_iceConnectionState == newState)
     472            return;
     473
    469474        m_iceConnectionState = newState;
    470 
    471475        dispatchEvent(Event::create(eventNames().iceconnectionstatechangeEvent, false, false));
    472476    });
Note: See TracChangeset for help on using the changeset viewer.