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

Issue 2448843003: Throw SyntaxError for non-turn/turns/stun URLs (Closed)

Created:
4 years, 1 month ago by foolip
Modified:
4 years, 1 month ago
Reviewers:
hta - Chromium
CC:
chromium-reviews, blink-reviews, tfarina, blink-reviews-w3ctests_chromium.org, haraken
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Throw SyntaxError for non-turn/turns/stun URLs This is a low risk change, it was previously TypeError. Also make the error message more descriptive. BUG=658423 Committed: https://crrev.com/8438659cb205725ac0bb3f09a27f994922d71737 Cr-Commit-Position: refs/heads/master@{#430653}

Patch Set 1 #

Total comments: 6

Patch Set 2 : split valid and scheme checks #

Total comments: 2

Messages

Total messages: 14 (3 generated)
foolip
4 years, 1 month ago (2016-10-25 13:17:16 UTC) #2
hta - Chromium
lgtm https://codereview.chromium.org/2448843003/diff/1/third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.cpp File third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.cpp (right): https://codereview.chromium.org/2448843003/diff/1/third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.cpp#newcode315 third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.cpp:315: "\". URL scheme must be \"stun\", \"turn\" or ...
4 years, 1 month ago (2016-10-25 13:43:43 UTC) #3
hta - Chromium
oops:not quite lgtm https://codereview.chromium.org/2448843003/diff/1/third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.cpp File third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.cpp (right): https://codereview.chromium.org/2448843003/diff/1/third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.cpp#newcode309 third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.cpp:309: if (!url.isValid() || Having to call ...
4 years, 1 month ago (2016-10-25 13:51:01 UTC) #4
hta - Chromium
not lgtm
4 years, 1 month ago (2016-10-25 13:51:17 UTC) #5
foolip
https://codereview.chromium.org/2448843003/diff/1/third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.cpp File third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.cpp (right): https://codereview.chromium.org/2448843003/diff/1/third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.cpp#newcode309 third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.cpp:309: if (!url.isValid() || On 2016/10/25 13:51:01, hta - Chromium ...
4 years, 1 month ago (2016-10-27 13:32:41 UTC) #6
foolip
https://codereview.chromium.org/2448843003/diff/20001/third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.cpp File third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.cpp (right): https://codereview.chromium.org/2448843003/diff/20001/third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.cpp#newcode317 third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.cpp:317: SyntaxError, "'" + url.protocol() + This really isn't a ...
4 years, 1 month ago (2016-10-27 13:34:39 UTC) #7
hta - Chromium
lgtm https://codereview.chromium.org/2448843003/diff/1/third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.cpp File third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.cpp (right): https://codereview.chromium.org/2448843003/diff/1/third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.cpp#newcode309 third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.cpp:309: if (!url.isValid() || On 2016/10/27 13:32:41, foolip wrote: ...
4 years, 1 month ago (2016-11-08 12:12:30 UTC) #8
foolip
So, I'll go ahead and land this. Maybe there is no URL starting with 'turn:' ...
4 years, 1 month ago (2016-11-08 15:39:07 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2448843003/20001
4 years, 1 month ago (2016-11-08 15:39:36 UTC) #11
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 1 month ago (2016-11-08 18:16:22 UTC) #12
commit-bot: I haz the power
4 years, 1 month ago (2016-11-08 18:38:33 UTC) #14
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/8438659cb205725ac0bb3f09a27f994922d71737
Cr-Commit-Position: refs/heads/master@{#430653}

Powered by Google App Engine
This is Rietveld 408576698