Bug 183615 - Bad configuration parameters should make RTCPeerConnection constructor throw
Summary: Bad configuration parameters should make RTCPeerConnection constructor throw
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: Other
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: youenn fablet
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2018-03-13 14:31 PDT by youenn fablet
Modified: 2018-03-15 15:42 PDT (History)
6 users (show)

See Also:


Attachments
Patch (4.23 KB, patch)
2018-03-13 16:24 PDT, youenn fablet
no flags Details | Formatted Diff | Diff
Archive of layout-test-results from ews123 for ios-simulator-wk2 (2.19 MB, application/zip)
2018-03-13 17:59 PDT, EWS Watchlist
no flags Details
Archive of layout-test-results from ews107 for mac-sierra-wk2 (2.65 MB, application/zip)
2018-03-13 20:35 PDT, EWS Watchlist
no flags Details
Patch (26.98 KB, patch)
2018-03-15 09:54 PDT, youenn fablet
ews-watchlist: commit-queue-
Details | Formatted Diff | Diff
Archive of layout-test-results from ews122 for ios-simulator-wk2 (2.18 MB, application/zip)
2018-03-15 11:26 PDT, EWS Watchlist
no flags Details
Patch (53.64 KB, patch)
2018-03-15 11:33 PDT, youenn fablet
no flags Details | Formatted Diff | Diff
Patch (53.67 KB, patch)
2018-03-15 12:59 PDT, youenn fablet
no flags Details | Formatted Diff | Diff
Patch for landing (53.71 KB, patch)
2018-03-15 14:34 PDT, youenn fablet
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description youenn fablet 2018-03-13 14:31:18 PDT
Otherwise we might end up with a null backend
Comment 1 youenn fablet 2018-03-13 16:24:37 PDT
Created attachment 335743 [details]
Patch
Comment 2 EWS Watchlist 2018-03-13 17:59:37 PDT
Comment on attachment 335743 [details]
Patch

Attachment 335743 [details] did not pass ios-sim-ews (ios-simulator-wk2):
Output: http://webkit-queues.webkit.org/results/6943208

New failing tests:
imported/w3c/web-platform-tests/webrtc/RTCConfiguration-iceServers.html
imported/w3c/web-platform-tests/webrtc/rtcpeerconnection/rtcpeerconnection-constructor.html
fast/mediastream/RTCPeerConnection.html
Comment 3 EWS Watchlist 2018-03-13 17:59:38 PDT
Created attachment 335751 [details]
Archive of layout-test-results from ews123 for ios-simulator-wk2

The attached test failures were seen while running run-webkit-tests on the ios-sim-ews.
Bot: ews123  Port: ios-simulator-wk2  Platform: Mac OS X 10.12.6
Comment 4 EWS Watchlist 2018-03-13 20:35:19 PDT
Comment on attachment 335743 [details]
Patch

Attachment 335743 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://webkit-queues.webkit.org/results/6945283

New failing tests:
imported/w3c/web-platform-tests/webrtc/RTCConfiguration-iceServers.html
imported/w3c/web-platform-tests/webrtc/rtcpeerconnection/rtcpeerconnection-constructor.html
fast/mediastream/RTCPeerConnection.html
Comment 5 EWS Watchlist 2018-03-13 20:35:20 PDT
Created attachment 335758 [details]
Archive of layout-test-results from ews107 for mac-sierra-wk2

The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: ews107  Port: mac-sierra-wk2  Platform: Mac OS X 10.12.6
Comment 6 Chris Dumez 2018-03-13 20:36:31 PDT
Comment on attachment 335743 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=335743&action=review

> Source/WebCore/Modules/mediastream/RTCPeerConnection.cpp:337
> +        return Exception { TypeError };

Please provide an exception message.
Comment 7 youenn fablet 2018-03-15 09:54:38 PDT
Created attachment 335854 [details]
Patch
Comment 8 EWS Watchlist 2018-03-15 11:26:12 PDT
Comment on attachment 335854 [details]
Patch

Attachment 335854 [details] did not pass ios-sim-ews (ios-simulator-wk2):
Output: http://webkit-queues.webkit.org/results/6966664

New failing tests:
fast/mediastream/RTCPeerConnection-getConfiguration.html
fast/scrolling/scroll-to-focused-element-asynchronously.html
fast/mediastream/RTCPeerConnection.html
Comment 9 EWS Watchlist 2018-03-15 11:26:14 PDT
Created attachment 335866 [details]
Archive of layout-test-results from ews122 for ios-simulator-wk2

The attached test failures were seen while running run-webkit-tests on the ios-sim-ews.
Bot: ews122  Port: ios-simulator-wk2  Platform: Mac OS X 10.12.6
Comment 10 youenn fablet 2018-03-15 11:33:45 PDT
Created attachment 335868 [details]
Patch
Comment 11 youenn fablet 2018-03-15 12:59:38 PDT
Created attachment 335873 [details]
Patch
Comment 12 Eric Carlson 2018-03-15 14:11:40 PDT
Comment on attachment 335873 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=335873&action=review

> Source/WebCore/ChangeLog:9
> +        Throw an error whenever underlying libwebrtc set configuration is failing.

Nit: "is failing" => "fails"

> Source/WebCore/Modules/mediastream/RTCPeerConnection.cpp:307
> +        return Exception { InvalidModificationError, "IceTransportPolicy do not match" };

Nit: something like "IceTransportPolicy does not match existing policy" would be better.

> Source/WebCore/Modules/mediastream/RTCPeerConnection.cpp:310
> +        return Exception { InvalidModificationError, "IceTransportPolicy do not match" };

Nit: something like "IceTransportPolicy pool size does not match existing pool size" would be better.
Comment 13 youenn fablet 2018-03-15 14:34:46 PDT
Created attachment 335886 [details]
Patch for landing
Comment 14 WebKit Commit Bot 2018-03-15 15:41:36 PDT
Comment on attachment 335886 [details]
Patch for landing

Clearing flags on attachment: 335886

Committed r229645: <https://trac.webkit.org/changeset/229645>
Comment 15 WebKit Commit Bot 2018-03-15 15:41:37 PDT
All reviewed patches have been landed.  Closing bug.
Comment 16 Radar WebKit Bug Importer 2018-03-15 15:42:31 PDT
<rdar://problem/38520374>