MediaStream API: Add the getStreamById method on RTCPeerConnection
Created attachment 191224 [details] Patch
Also took the opportunity to fix the readyState handling of MediaStreamSource. It is allowed to set the readystate to ended more than once.
Please wait for approval from abarth@webkit.org, dglazkov@chromium.org, fishd@chromium.org, jamesr@chromium.org or tkent@chromium.org before submitting, as this patch contains changes to the Chromium public API. See also https://trac.webkit.org/wiki/ChromiumWebKitAPI.
Comment on attachment 191224 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=191224&action=review > Source/WebCore/Modules/mediastream/RTCPeerConnection.cpp:434 > +MediaStream* RTCPeerConnection::getStreamById(String streamId) String -> const String& > Source/WebCore/Modules/mediastream/RTCPeerConnection.cpp:438 > + return (*iter).get(); (*iter).get() -> iter->get() ?
Created attachment 191428 [details] Patch for landing
Comment on attachment 191224 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=191224&action=review >> Source/WebCore/Modules/mediastream/RTCPeerConnection.cpp:434 >> +MediaStream* RTCPeerConnection::getStreamById(String streamId) > > String -> const String& Fixed. >> Source/WebCore/Modules/mediastream/RTCPeerConnection.cpp:438 >> + return (*iter).get(); > > (*iter).get() -> iter->get() ? Done.
Created attachment 191437 [details] Patch for landing
Removed a TestExpectations exception for a test in the latest patch because this code fixes the issue.
Comment on attachment 191437 [details] Patch for landing Clearing flags on attachment: 191437 Committed r144748: <http://trac.webkit.org/changeset/144748>