Bug 190603 - Support RTCConfiguration.certificates
Summary: Support RTCConfiguration.certificates
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebRTC (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: youenn fablet
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2018-10-15 14:38 PDT by youenn fablet
Modified: 2018-10-30 12:43 PDT (History)
4 users (show)

See Also:


Attachments
Patch (15.94 KB, patch)
2018-10-15 14:45 PDT, youenn fablet
no flags Details | Formatted Diff | Diff
Patch (19.62 KB, patch)
2018-10-15 15:43 PDT, youenn fablet
no flags Details | Formatted Diff | Diff
Patch for landing (19.61 KB, patch)
2018-10-16 11:49 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-10-15 14:38:30 PDT
Now that we have generateCertificate, let's allow RTCPeerConnection to use these.
Comment 1 youenn fablet 2018-10-15 14:45:12 PDT
Created attachment 352384 [details]
Patch
Comment 2 youenn fablet 2018-10-15 15:43:24 PDT
Created attachment 352393 [details]
Patch
Comment 3 Eric Carlson 2018-10-16 11:14:46 PDT
Comment on attachment 352393 [details]
Patch

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

> Source/WebCore/Modules/mediastream/RTCPeerConnection.cpp:303
> +            exception = Exception { InvalidAccessError, "Certificate is expired"_s };

Nit: "Certificate has expired" would be better.

> Source/WebCore/Modules/mediastream/RTCPeerConnection.cpp:324
>          return Exception { InvalidAccessError, "Bad Configuration Parameters" };

Nit: maybe "Invalid configuration parameters"?
Comment 4 youenn fablet 2018-10-16 11:24:34 PDT
Thanks for the review.

> > Source/WebCore/Modules/mediastream/RTCPeerConnection.cpp:303
> > +            exception = Exception { InvalidAccessError, "Certificate is expired"_s };
> 
> Nit: "Certificate has expired" would be better.

OK

> > Source/WebCore/Modules/mediastream/RTCPeerConnection.cpp:324
> >          return Exception { InvalidAccessError, "Bad Configuration Parameters" };
> 
> Nit: maybe "Invalid configuration parameters"?

Will do in another patch since that might need rebasing some other tests.
Comment 5 youenn fablet 2018-10-16 11:49:00 PDT
Created attachment 352481 [details]
Patch for landing
Comment 6 WebKit Commit Bot 2018-10-16 14:01:22 PDT
Comment on attachment 352481 [details]
Patch for landing

Clearing flags on attachment: 352481

Committed r237202: <https://trac.webkit.org/changeset/237202>
Comment 7 WebKit Commit Bot 2018-10-16 14:01:24 PDT
All reviewed patches have been landed.  Closing bug.
Comment 8 Radar WebKit Bug Importer 2018-10-16 14:03:20 PDT
<rdar://problem/45317733>