Bug 129182 - [WebRTC] Validating RTCConfiguration according to the spec
Summary: [WebRTC] Validating RTCConfiguration according to the spec
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Thiago de Barros Lacerda
URL:
Keywords:
Depends on:
Blocks: 124288
  Show dependency treegraph
 
Reported: 2014-02-21 16:12 PST by Thiago de Barros Lacerda
Modified: 2014-05-19 09:08 PDT (History)
9 users (show)

See Also:


Attachments
Patch (62.08 KB, patch)
2014-02-21 16:37 PST, Thiago de Barros Lacerda
eric.carlson: review+
thiago.lacerda: commit-queue-
Details | Formatted Diff | Diff
Requested changes (62.12 KB, patch)
2014-02-24 12:14 PST, Thiago de Barros Lacerda
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Thiago de Barros Lacerda 2014-02-21 16:12:08 PST
Spec states that:
   - iceServers should not be an empty list
   - the entry in the configuration dictionary is "urls", instead of "url"
   - urls can be either a list or a string
Fixing all that in RTCConfiguration validation when creating a RTCPeerConnection
Comment 1 Thiago de Barros Lacerda 2014-02-21 16:37:05 PST
Created attachment 224926 [details]
Patch
Comment 2 Eric Carlson 2014-02-21 17:04:41 PST
Comment on attachment 224926 [details]
Patch

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

I might have missed it, but I don't see any new tests that pass a list of urls.

> Source/WebCore/Modules/mediastream/RTCPeerConnection.cpp:83
> +    // Spec says that "urls" can be either a string or a sequence, so we must check for both.
> +    Vector<String> urlsList;
> +    String urlString;

Nit: this can move down where the variables are used.
Comment 3 Thiago de Barros Lacerda 2014-02-24 12:14:38 PST
Created attachment 225080 [details]
Requested changes
Comment 4 WebKit Commit Bot 2014-02-24 12:55:11 PST
Comment on attachment 225080 [details]
Requested changes

Clearing flags on attachment: 225080

Committed r164602: <http://trac.webkit.org/changeset/164602>