Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(253)

Issue 1644553002: Constructing an RTCPeerConnection with expired certificates should throw an exception. (Closed)

Created:
4 years, 10 months ago by hbos_chromium
Modified:
4 years, 8 months ago
CC:
chromium-reviews, blink-reviews, tommyw+watchlist_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Constructing an RTCPeerConnection with expired certificates should throw an exception. See spec @ Step 9: https://w3c.github.io/webrtc-pc/archives/20151123/webrtc.html#rtcpeerconnection-interface. It says to throw an InvalidParameter exception, but there is no such DOMException, I believe a mistake by the spec. Instead I throw an InvalidStateError. BUG=565278 Committed: https://crrev.com/a007fbd29875ab2bc9f2332288a50e81dac62f2d Cr-Commit-Position: refs/heads/master@{#388470}

Patch Set 1 #

Patch Set 2 : Check expiration at RTCPeerConnection::create, not at parseConfiguration #

Total comments: 2

Patch Set 3 : Rebase /w master. Updated test to generate expired certificate and verify exception is thrown #

Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -3 lines) Patch
M third_party/WebKit/LayoutTests/fast/mediastream/RTCPeerConnection.html View 1 2 3 chunks +16 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/mediastream/RTCPeerConnection-expected.txt View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.h View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.cpp View 1 2 4 chunks +14 lines, -1 line 0 comments Download

Messages

Total messages: 24 (5 generated)
hbos_chromium
Please take a look hta, tommi. I can't create a test for this without first ...
4 years, 10 months ago (2016-01-27 10:58:30 UTC) #2
hbos_chromium
On 2016/01/27 10:58:30, hbos_chromium wrote: > Please take a look hta, tommi. > > I ...
4 years, 10 months ago (2016-01-27 11:11:32 UTC) #4
hta - Chromium
If you can make currentTime injectable (perhaps by isolating the validity checking to its own ...
4 years, 10 months ago (2016-01-29 07:15:14 UTC) #5
tommi (sloooow) - chröme
has this been moved to a new cl or will work continue in this cl?
4 years, 10 months ago (2016-02-15 16:22:49 UTC) #6
hbos_chromium
On 2016/02/15 16:22:49, tommi-chromium wrote: > has this been moved to a new cl or ...
4 years, 10 months ago (2016-02-15 16:42:10 UTC) #7
blink-reviews
The spec's updated - it's part of the keygen algorithm parameter. http://w3c.github.io/webrtc-pc/#widl-RTCPeerConnection-generateCertificate-Promise-RTCCertificate--AlgorithmIdentifier-keygenAlgorithm On Mon, Feb ...
4 years, 10 months ago (2016-02-15 17:17:21 UTC) #8
chromium-reviews
The spec's updated - it's part of the keygen algorithm parameter. http://w3c.github.io/webrtc-pc/#widl-RTCPeerConnection-generateCertificate-Promise-RTCCertificate--AlgorithmIdentifier-keygenAlgorithm On Mon, Feb ...
4 years, 10 months ago (2016-02-15 17:17:21 UTC) #9
hta - Chromium
Status update?
4 years, 8 months ago (2016-04-11 08:10:23 UTC) #10
hbos_chromium
On 2016/04/11 08:10:23, hta - Chromium wrote: > Status update? I want to land https://codereview.chromium.org/1740993002/ ...
4 years, 8 months ago (2016-04-12 12:35:18 UTC) #11
hbos_chromium
On 2016/04/12 12:35:18, hbos_chromium wrote: > On 2016/04/11 08:10:23, hta - Chromium wrote: > > ...
4 years, 8 months ago (2016-04-12 12:45:28 UTC) #12
hbos_chromium
PTAL hta & tommi. Rebased with master, ready to land this now. https://codereview.chromium.org/1644553002/diff/20001/third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.cpp File third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.cpp ...
4 years, 8 months ago (2016-04-20 11:08:58 UTC) #13
hta - Chromium
Filed https://github.com/w3c/webrtc-pc/issues/586 about the inability to get InvalidParameter defined.
4 years, 8 months ago (2016-04-20 11:27:31 UTC) #14
hbos_chromium
On 2016/04/20 11:27:31, hta - Chromium wrote: > Filed https://github.com/w3c/webrtc-pc/issues/586 about the inability to get ...
4 years, 8 months ago (2016-04-20 11:31:26 UTC) #15
hta - Chromium
lgtm The edge case of a certificate expiring in the same second as it's being ...
4 years, 8 months ago (2016-04-20 11:33:22 UTC) #16
hbos_chromium
PTAL tommi-chrömium
4 years, 8 months ago (2016-04-20 11:35:57 UTC) #17
tommi (sloooow) - chröme
lööks gööd! lgtm
4 years, 8 months ago (2016-04-20 11:52:38 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1644553002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1644553002/40001
4 years, 8 months ago (2016-04-20 11:54:57 UTC) #20
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 8 months ago (2016-04-20 12:07:27 UTC) #22
commit-bot: I haz the power
4 years, 8 months ago (2016-04-22 19:22:35 UTC) #24
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/a007fbd29875ab2bc9f2332288a50e81dac62f2d
Cr-Commit-Position: refs/heads/master@{#388470}

Powered by Google App Engine
This is Rietveld 408576698