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

Issue 1344143002: Catching more errors when parsing ICE server URLs. (Closed)

Created:
5 years, 3 months ago by Taylor Brandstetter
Modified:
5 years, 2 months ago
Reviewers:
tommi, pthatcher1
CC:
webrtc-reviews_webrtc.org, interface-changes_webrtc.org, rwolff_gocast.it, yujie_mao (webrtc), Andrew MacDonald, tterriberry_mozilla.com, qiang.lu, niklas.enbom
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Catching more errors when parsing ICE server URLs. Every malformed URL should now produce an error message in JS, rather than silently failing and possibly printing a warning message to the console (and possibly crashing). Also added some unit tests, and made "ParseIceServers" public. BUG=445002 Committed: https://crrev.com/0a6c4ca942f3a25c15c7af64a9515d381c34cd9c Cr-Commit-Position: refs/heads/master@{#10186}

Patch Set 1 #

Patch Set 2 : Adding tests that cover the additions to stringencode #

Patch Set 3 : Fixing tests that didn't expect PC creation to fail due to ICE parse errors. #

Total comments: 35

Patch Set 4 : Addressing tommi's comments. #

Patch Set 5 : #

Patch Set 6 : Fixing merge conflict and some other issues. #

Patch Set 7 : Fixing a DCHECK. #

Patch Set 8 : Merging with master. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+334 lines, -90 lines) Patch
M talk/app/webrtc/peerconnection.h View 1 2 3 4 5 6 7 1 chunk +6 lines, -0 lines 0 comments Download
M talk/app/webrtc/peerconnection.cc View 1 2 3 4 5 6 7 20 chunks +91 lines, -70 lines 0 comments Download
M talk/app/webrtc/peerconnection_unittest.cc View 1 2 3 2 chunks +177 lines, -0 lines 0 comments Download
M talk/app/webrtc/peerconnectionfactory_unittest.cc View 1 2 3 4 5 3 chunks +0 lines, -5 lines 0 comments Download
M talk/app/webrtc/peerconnectioninterface_unittest.cc View 1 2 3 4 5 3 chunks +23 lines, -14 lines 0 comments Download
M webrtc/base/stringencode.h View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M webrtc/base/stringencode.cc View 1 2 3 2 chunks +15 lines, -1 line 0 comments Download
M webrtc/base/stringencode_unittest.cc View 1 2 3 4 2 chunks +17 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (6 generated)
Taylor Brandstetter
Beyond just catching more parsing errors, this CL also makes the PeerConnection fail to be ...
5 years, 3 months ago (2015-09-15 22:36:05 UTC) #3
pthatcher1
lgtm I think it would make sense to have tommi@ review this also.
5 years, 3 months ago (2015-09-16 03:28:40 UTC) #4
Taylor Brandstetter
tommi@, could you take a quick look? Thanks.
5 years, 3 months ago (2015-09-16 17:19:06 UTC) #6
tommi
https://codereview.webrtc.org/1344143002/diff/40001/talk/app/webrtc/peerconnection.cc File talk/app/webrtc/peerconnection.cc (right): https://codereview.webrtc.org/1344143002/diff/40001/talk/app/webrtc/peerconnection.cc#newcode71 talk/app/webrtc/peerconnection.cc:71: "invalid"}; why do we need this last value? https://codereview.webrtc.org/1344143002/diff/40001/talk/app/webrtc/peerconnection.cc#newcode74 ...
5 years, 3 months ago (2015-09-16 21:51:01 UTC) #7
Taylor Brandstetter
I addressed most of your comments, Tommi. Note that the only real behavioral change from ...
5 years, 3 months ago (2015-09-24 00:25:05 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1344143002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1344143002/160001
5 years, 2 months ago (2015-10-06 17:31:57 UTC) #12
commit-bot: I haz the power
Committed patchset #8 (id:160001)
5 years, 2 months ago (2015-10-06 18:38:35 UTC) #13
commit-bot: I haz the power
5 years, 2 months ago (2015-10-06 18:38:40 UTC) #14
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/0a6c4ca942f3a25c15c7af64a9515d381c34cd9c
Cr-Commit-Position: refs/heads/master@{#10186}

Powered by Google App Engine
This is Rietveld 408576698