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

Issue 1713953002: Report errors in RTCPeerConnection legacy functions via the the failure callback instead of excepti… (Closed)

Created:
4 years, 10 months ago by Guido Urdaneta
Modified:
4 years, 9 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

Report errors in RTCPeerConnection legacy functions via the the failure callback instead of exceptions. This makes createAnswer() and createOffer() more compliant with the spec and will reduce unexpected surprises when their return value changes to Promise<void>. BUG=499126 Committed: https://crrev.com/e332af368744cceb112fcd228f74a53b381acec2 Cr-Commit-Position: refs/heads/master@{#380614}

Patch Set 1 #

Patch Set 2 : fix expected #

Total comments: 5

Patch Set 3 : Treat invalid offerToReceiveAudio/Video values as zero #

Patch Set 4 : rebase #

Patch Set 5 : Ignore ConstraintErrors produced by the constraints parser #

Total comments: 6

Patch Set 6 : Rebase + Add comment explaining constraints error handling #

Total comments: 2

Patch Set 7 : Remove unused counters #

Total comments: 2

Patch Set 8 : Fix whitespace #

Patch Set 9 : rebase #

Messages

Total messages: 53 (17 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1713953002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1713953002/20001
4 years, 10 months ago (2016-02-19 11:36:09 UTC) #3
Guido Urdaneta
Hi, PTAL.
4 years, 10 months ago (2016-02-19 12:32:56 UTC) #6
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/25820)
4 years, 10 months ago (2016-02-19 15:40:54 UTC) #8
philipj_slow
So this seems quite tricky, part of a broader issue that RTCErrorCallback needs to be ...
4 years, 10 months ago (2016-02-22 10:03:42 UTC) #9
Guido Urdaneta
https://codereview.chromium.org/1713953002/diff/20001/third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.cpp File third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.cpp (right): https://codereview.chromium.org/1713953002/diff/20001/third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.cpp#newcode382 third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.cpp:382: asyncCallErrorCallback(errorCallback, "Invalid offerToReceiveVideo"); On 2016/02/22 10:03:41, philipj_UTC7 wrote: > ...
4 years, 10 months ago (2016-02-22 11:37:50 UTC) #10
philipj_slow
https://codereview.chromium.org/1713953002/diff/20001/third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.cpp File third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.cpp (right): https://codereview.chromium.org/1713953002/diff/20001/third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.cpp#newcode474 third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.cpp:474: ASSERT(errorCallback); On 2016/02/22 11:37:50, Guido Urdaneta wrote: > On ...
4 years, 10 months ago (2016-02-23 09:13:54 UTC) #11
philipj_slow
Thanks for the detailed reply. This is a tricky situation to navigate. Both the overall ...
4 years, 10 months ago (2016-02-23 09:39:50 UTC) #12
Guido Urdaneta
On 2016/02/23 09:39:50, philipj_UTC7 wrote: > Thanks for the detailed reply. This is a tricky ...
4 years, 10 months ago (2016-02-23 10:01:46 UTC) #13
philipj_slow
On 2016/02/23 10:01:46, Guido Urdaneta wrote: > On 2016/02/23 09:39:50, philipj_UTC7 wrote: > > Thanks ...
4 years, 10 months ago (2016-02-23 10:38:24 UTC) #14
Guido Urdaneta
On 2016/02/23 10:38:24, philipj_UTC7 wrote: > On 2016/02/23 10:01:46, Guido Urdaneta wrote: > > On ...
4 years, 10 months ago (2016-02-23 13:06:44 UTC) #16
hta - Chromium
Note that offerToReceive* has been changed in the spec from booleans to integers, and have ...
4 years, 10 months ago (2016-02-23 14:55:50 UTC) #17
philipj_slow
On 2016/02/23 14:55:50, hta - Chromium wrote: > Note that offerToReceive* has been changed in ...
4 years, 10 months ago (2016-02-23 17:03:35 UTC) #18
Guido Urdaneta
On 2016/02/23 17:03:35, philipj_UTC7 wrote: > On 2016/02/23 14:55:50, hta - Chromium wrote: > > ...
4 years, 10 months ago (2016-02-26 13:37:33 UTC) #19
philipj_slow
On 2016/02/26 13:37:33, Guido Urdaneta wrote: > On 2016/02/23 17:03:35, philipj_UTC7 wrote: > > On ...
4 years, 10 months ago (2016-02-26 13:52:55 UTC) #20
Guido Urdaneta
> Until the usage data for RTCPeerConnectionCreateOfferLegacyConstraints and > RTCPeerConnectionCreateAnswerLegacyConstraints becomes clear when M49 reaches ...
4 years, 10 months ago (2016-02-26 14:23:52 UTC) #21
philipj_slow
On 2016/02/26 14:23:52, Guido Urdaneta wrote: > > Until the usage data for RTCPeerConnectionCreateOfferLegacyConstraints and ...
4 years, 10 months ago (2016-02-26 15:12:31 UTC) #22
Guido Urdaneta
On 2016/02/26 15:12:31, philipj_UTC7 wrote: > On 2016/02/26 14:23:52, Guido Urdaneta wrote: > > > ...
4 years, 10 months ago (2016-02-26 16:26:15 UTC) #23
philipj_slow
On 2016/02/26 16:26:15, Guido Urdaneta wrote: > On 2016/02/26 15:12:31, philipj_UTC7 wrote: > > On ...
4 years, 10 months ago (2016-02-26 18:25:54 UTC) #24
Guido Urdaneta
> Isn't it a trivial change? There seem to be only two places that emit ...
4 years, 9 months ago (2016-02-29 13:29:23 UTC) #26
philipj_slow
On 2016/02/29 13:29:23, Guido Urdaneta wrote: > > Isn't it a trivial change? There seem ...
4 years, 9 months ago (2016-02-29 17:13:54 UTC) #27
Guido Urdaneta
> How about getting rid of the easy errorState.throwConstraintError cases and > keeping all of ...
4 years, 9 months ago (2016-02-29 18:49:56 UTC) #28
philipj_slow
OK, almost there :) https://codereview.chromium.org/1713953002/diff/80001/third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.cpp File third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.cpp (right): https://codereview.chromium.org/1713953002/diff/80001/third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.cpp#newcode104 third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.cpp:104: class ErrorCallbackTask : public WebTaskRunner::Task ...
4 years, 9 months ago (2016-03-01 04:53:06 UTC) #29
Guido Urdaneta
On 2016/03/01 04:53:06, philipj_UTC7 wrote: > OK, almost there :) > > https://codereview.chromium.org/1713953002/diff/80001/third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.cpp > File ...
4 years, 9 months ago (2016-03-07 09:46:09 UTC) #30
hta - Chromium
Tried to explain why the presence of the "constraint name" extension in constrainteerror forces some ...
4 years, 9 months ago (2016-03-07 15:15:47 UTC) #31
philipj_slow
https://codereview.chromium.org/1713953002/diff/80001/third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.cpp File third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.cpp (right): https://codereview.chromium.org/1713953002/diff/80001/third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.cpp#newcode483 third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.cpp:483: if (mediaErrorState.canGenerateException()) { On 2016/03/07 15:15:47, hta - Chromium ...
4 years, 9 months ago (2016-03-09 13:15:31 UTC) #32
Guido Urdaneta
https://codereview.chromium.org/1713953002/diff/80001/third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.cpp File third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.cpp (right): https://codereview.chromium.org/1713953002/diff/80001/third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.cpp#newcode104 third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.cpp:104: class ErrorCallbackTask : public WebTaskRunner::Task { On 2016/03/01 04:53:05, ...
4 years, 9 months ago (2016-03-09 15:04:35 UTC) #33
philipj_slow
Non-module-owner LGTM. Adding tommi@ for owners review. https://codereview.chromium.org/1713953002/diff/100001/third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.cpp File third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.cpp (left): https://codereview.chromium.org/1713953002/diff/100001/third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.cpp#oldcode446 third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.cpp:446: Deprecation::countDeprecation(context, UseCounter::RTCPeerConnectionCreateOfferLegacyNoFailureCallback); ...
4 years, 9 months ago (2016-03-10 15:53:01 UTC) #35
tommi (sloooow) - chröme
lgtm https://codereview.chromium.org/1713953002/diff/120001/third_party/WebKit/LayoutTests/fast/mediastream/RTCPeerConnection-createOffer.html File third_party/WebKit/LayoutTests/fast/mediastream/RTCPeerConnection-createOffer.html (right): https://codereview.chromium.org/1713953002/diff/120001/third_party/WebKit/LayoutTests/fast/mediastream/RTCPeerConnection-createOffer.html#newcode22 third_party/WebKit/LayoutTests/fast/mediastream/RTCPeerConnection-createOffer.html:22: function expectedCreateOfferFailed7(error) nit: fix whitespace. same below.
4 years, 9 months ago (2016-03-10 22:01:53 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1713953002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1713953002/140001
4 years, 9 months ago (2016-03-11 07:49:59 UTC) #39
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator_gn on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_gn/builds/3474) ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_FAILED, ...
4 years, 9 months ago (2016-03-11 07:52:36 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1713953002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1713953002/160001
4 years, 9 months ago (2016-03-11 08:37:48 UTC) #44
Guido Urdaneta
https://codereview.chromium.org/1713953002/diff/120001/third_party/WebKit/LayoutTests/fast/mediastream/RTCPeerConnection-createOffer.html File third_party/WebKit/LayoutTests/fast/mediastream/RTCPeerConnection-createOffer.html (right): https://codereview.chromium.org/1713953002/diff/120001/third_party/WebKit/LayoutTests/fast/mediastream/RTCPeerConnection-createOffer.html#newcode22 third_party/WebKit/LayoutTests/fast/mediastream/RTCPeerConnection-createOffer.html:22: function expectedCreateOfferFailed7(error) On 2016/03/10 22:01:52, tommi-chromium wrote: > nit: ...
4 years, 9 months ago (2016-03-11 08:39:06 UTC) #45
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/195342)
4 years, 9 months ago (2016-03-11 10:59:03 UTC) #47
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1713953002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1713953002/160001
4 years, 9 months ago (2016-03-11 11:00:50 UTC) #49
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years, 9 months ago (2016-03-11 13:00:42 UTC) #51
commit-bot: I haz the power
4 years, 9 months ago (2016-03-11 13:02:03 UTC) #53
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/e332af368744cceb112fcd228f74a53b381acec2
Cr-Commit-Position: refs/heads/master@{#380614}

Powered by Google App Engine
This is Rietveld 408576698