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

Issue 1661493002: Add promise-based addIceCandidate, setLocalDescription and setRemoteDescription to RTCPeerConnection (Closed)

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

Description

Add promise-based addIceCandidate, setLocalDescription and setRemoteDescription to RTCPeerConnection Intent to Ship: https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/zVlp8jIb2XU BUG=499126 Committed: https://crrev.com/e16c96f5a5b517a64fdbc5be75f05e359e04b461 Cr-Commit-Position: refs/heads/master@{#376163}

Patch Set 1 #

Patch Set 2 : Replace "TBD" with "InternalError" #

Total comments: 35

Patch Set 3 : Remove fulfilled TODO and rebase #

Patch Set 4 : Some philipj's comments #

Total comments: 4

Patch Set 5 : Use microtask to run callbacks asynchronously #

Patch Set 6 : rebase #

Total comments: 16

Patch Set 7 : yhirano's comments #

Patch Set 8 : yhirano's comments #

Total comments: 9

Patch Set 9 : Return resolved promises with undefined #

Total comments: 8

Patch Set 10 : philipj's comments #

Patch Set 11 : remove unncessary include #

Patch Set 12 : remove activedomobjects check #

Patch Set 13 : stop promise resolver when the promise must remain unresolved #

Total comments: 4

Patch Set 14 : yhirano's comments #

Total comments: 27

Patch Set 15 : haraken and philipj's comments #

Total comments: 2

Patch Set 16 : rebase, philipj's comments and execution-order tests for legacy functions #

Patch Set 17 : return ScriptPromise(undefined) instead of ScriptPromise() #

Total comments: 1

Patch Set 18 : Use ScriptPromiseResolver::detach() to leave the promise unresolved. #

Total comments: 4

Patch Set 19 : philipj's comments on tests #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+550 lines, -97 lines) Patch
M third_party/WebKit/LayoutTests/fast/mediastream/RTCPeerConnection-ice.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +32 lines, -6 lines 2 comments Download
M third_party/WebKit/LayoutTests/fast/mediastream/RTCPeerConnection-ice-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +13 lines, -4 lines 0 comments Download
A + third_party/WebKit/LayoutTests/fast/mediastream/RTCPeerConnection-ice-promise.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +16 lines, -5 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/mediastream/RTCPeerConnection-ice-promise-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +17 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/mediastream/RTCPeerConnection-localDescription.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +38 lines, -12 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/mediastream/RTCPeerConnection-localDescription-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +10 lines, -3 lines 0 comments Download
A + third_party/WebKit/LayoutTests/fast/mediastream/RTCPeerConnection-localDescription-promise.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +18 lines, -4 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/mediastream/RTCPeerConnection-localDescription-promise-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +23 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/mediastream/RTCPeerConnection-remoteDescription.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +38 lines, -12 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/mediastream/RTCPeerConnection-remoteDescription-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +10 lines, -3 lines 0 comments Download
A + third_party/WebKit/LayoutTests/fast/mediastream/RTCPeerConnection-remoteDescription-promise.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +18 lines, -4 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/mediastream/RTCPeerConnection-remoteDescription-promise-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +23 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/mediastream/MediaErrorState.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/mediastream/MediaErrorState.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +28 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.h View 1 2 3 4 5 6 7 3 chunks +9 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 8 chunks +134 lines, -23 lines 0 comments Download
M third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.idl View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +9 lines, -10 lines 0 comments Download
A third_party/WebKit/Source/modules/mediastream/RTCVoidRequestPromiseImpl.h View 1 2 3 4 5 6 7 8 9 1 chunk +40 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/mediastream/RTCVoidRequestPromiseImpl.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +69 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/modules.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 87 (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/1661493002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1661493002/1
4 years, 10 months ago (2016-02-02 16:11:45 UTC) #2
Guido Urdaneta
Hi, PTAL
4 years, 10 months ago (2016-02-03 09:21:39 UTC) #4
Peter Beverloo
+avayvod
4 years, 10 months ago (2016-02-03 10:05:53 UTC) #7
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1661493002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1661493002/20001
4 years, 10 months ago (2016-02-05 15:33:40 UTC) #9
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2016-02-05 16:58:16 UTC) #11
Guido Urdaneta
Friendly ping :)
4 years, 10 months ago (2016-02-08 09:20:09 UTC) #12
Guido Urdaneta
philipj: can you take a look?
4 years, 10 months ago (2016-02-09 10:22:07 UTC) #14
hta - Chromium
To me it looks good. https://codereview.chromium.org/1661493002/diff/20001/third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.idl File third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.idl (right): https://codereview.chromium.org/1661493002/diff/20001/third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.idl#newcode84 third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.idl:84: // TODO(guidou): addIceCandidate() should ...
4 years, 10 months ago (2016-02-09 10:59:08 UTC) #16
philipj_slow
This is mostly new code to me, pardon my confusion :) https://codereview.chromium.org/1661493002/diff/20001/third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.cpp File third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.cpp (right): ...
4 years, 10 months ago (2016-02-09 12:02:04 UTC) #17
blink-reviews
Comment on the error thing: In the spec discussions, this is under active review (Dom ...
4 years, 10 months ago (2016-02-09 12:40:16 UTC) #18
chromium-reviews
Comment on the error thing: In the spec discussions, this is under active review (Dom ...
4 years, 10 months ago (2016-02-09 12:40:17 UTC) #19
philipj_slow
On 2016/02/09 12:40:17, chromium-reviews wrote: > Comment on the error thing: In the spec discussions, ...
4 years, 10 months ago (2016-02-09 13:47:46 UTC) #20
Guido Urdaneta
> OK, "lower layer code doesn't distinguish error codes yet" explains the function > signature. ...
4 years, 10 months ago (2016-02-09 14:30:28 UTC) #21
Guido Urdaneta
https://codereview.chromium.org/1661493002/diff/20001/third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.cpp File third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.cpp (right): https://codereview.chromium.org/1661493002/diff/20001/third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.cpp#newcode89 third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.cpp:89: const char kDefaultErrorName[] = "InternalError"; On 2016/02/09 12:02:03, philipj_UTC7 ...
4 years, 10 months ago (2016-02-09 16:51:01 UTC) #22
philipj_slow
There's a chance I'll be OOO for the next round, I'll update my nick if ...
4 years, 10 months ago (2016-02-09 18:59:17 UTC) #23
philipj_slow
Oh, right. In the "Intent to Remove: Support for optional error handler in RTCPeerConnection's createOffer() ...
4 years, 10 months ago (2016-02-09 19:03:40 UTC) #24
blink-reviews
We decided that it was possible to ship these 3 functions as promises in this ...
4 years, 10 months ago (2016-02-09 19:49:11 UTC) #25
chromium-reviews
We decided that it was possible to ship these 3 functions as promises in this ...
4 years, 10 months ago (2016-02-09 19:49:12 UTC) #26
Guido Urdaneta
> Is there a WebIDL issue filed for adding any of the new names? I ...
4 years, 10 months ago (2016-02-09 21:24:30 UTC) #27
philipj_slow
On 2016/02/09 19:49:11, hta wrote: > On Tue, Feb 9, 2016 at 8:03 PM, philipj ...
4 years, 10 months ago (2016-02-10 03:00:22 UTC) #28
philipj_slow
On 2016/02/09 21:24:30, Guido Urdaneta wrote: > > Is there a WebIDL issue filed for ...
4 years, 10 months ago (2016-02-10 03:10:04 UTC) #29
Guido Urdaneta
PTAL. I think I addressed all comments, except the part about updating the tests to ...
4 years, 10 months ago (2016-02-10 07:05:13 UTC) #30
Guido Urdaneta
haraken@, can you take a look at this CL?
4 years, 10 months ago (2016-02-10 13:22:47 UTC) #32
haraken
+yhirano: Would you take a look at the promise part? Also I want to have ...
4 years, 10 months ago (2016-02-10 13:46:45 UTC) #34
blink-reviews
I have followed closely, and believe it is good. 10. feb. 2016 14:46 skrev <haraken@chromium.org>: ...
4 years, 10 months ago (2016-02-10 16:12:02 UTC) #35
chromium-reviews
I have followed closely, and believe it is good. 10. feb. 2016 14:46 skrev <haraken@chromium.org>: ...
4 years, 10 months ago (2016-02-10 16:12:03 UTC) #36
yhirano
https://codereview.chromium.org/1661493002/diff/100001/third_party/WebKit/Source/modules/mediastream/MediaErrorState.cpp File third_party/WebKit/Source/modules/mediastream/MediaErrorState.cpp (right): https://codereview.chromium.org/1661493002/diff/100001/third_party/WebKit/Source/modules/mediastream/MediaErrorState.cpp#newcode111 third_party/WebKit/Source/modules/mediastream/MediaErrorState.cpp:111: break; Is this "break" needed? https://codereview.chromium.org/1661493002/diff/100001/third_party/WebKit/Source/modules/mediastream/MediaErrorState.cpp#newcode118 third_party/WebKit/Source/modules/mediastream/MediaErrorState.cpp:118: return String("Unsatisfiable ...
4 years, 10 months ago (2016-02-10 18:13:23 UTC) #37
Guido Urdaneta
https://codereview.chromium.org/1661493002/diff/100001/third_party/WebKit/Source/modules/mediastream/MediaErrorState.cpp File third_party/WebKit/Source/modules/mediastream/MediaErrorState.cpp (right): https://codereview.chromium.org/1661493002/diff/100001/third_party/WebKit/Source/modules/mediastream/MediaErrorState.cpp#newcode111 third_party/WebKit/Source/modules/mediastream/MediaErrorState.cpp:111: break; On 2016/02/10 18:13:22, yhirano wrote: > Is this ...
4 years, 10 months ago (2016-02-10 20:21:28 UTC) #38
yhirano
https://codereview.chromium.org/1661493002/diff/100001/third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.cpp File third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.cpp (right): https://codereview.chromium.org/1661493002/diff/100001/third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.cpp#newcode525 third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.cpp:525: ScriptPromise RTCPeerConnection::setLocalDescription(ExecutionContext* context, RTCSessionDescription* sessionDescription, VoidCallback* successCallback, RTCErrorCallback* errorCallback) ...
4 years, 10 months ago (2016-02-10 22:29:19 UTC) #39
Guido Urdaneta
https://codereview.chromium.org/1661493002/diff/100001/third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.cpp File third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.cpp (right): https://codereview.chromium.org/1661493002/diff/100001/third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.cpp#newcode525 third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.cpp:525: ScriptPromise RTCPeerConnection::setLocalDescription(ExecutionContext* context, RTCSessionDescription* sessionDescription, VoidCallback* successCallback, RTCErrorCallback* errorCallback) ...
4 years, 10 months ago (2016-02-10 23:53:14 UTC) #40
yhirano
https://codereview.chromium.org/1661493002/diff/140001/third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.cpp File third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.cpp (right): https://codereview.chromium.org/1661493002/diff/140001/third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.cpp#newcode540 third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.cpp:540: return ScriptPromise::cast(scriptState, ScriptValue()); ScriptPromise::cast(scriptState, v8::Undefined(scriptState->isolate()); https://codereview.chromium.org/1661493002/diff/140001/third_party/WebKit/Source/modules/mediastream/RTCVoidRequestPromiseImpl.cpp File third_party/WebKit/Source/modules/mediastream/RTCVoidRequestPromiseImpl.cpp (right): ...
4 years, 10 months ago (2016-02-11 01:58:17 UTC) #41
Guido Urdaneta
https://codereview.chromium.org/1661493002/diff/140001/third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.cpp File third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.cpp (right): https://codereview.chromium.org/1661493002/diff/140001/third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.cpp#newcode540 third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.cpp:540: return ScriptPromise::cast(scriptState, ScriptValue()); On 2016/02/11 01:58:17, yhirano wrote: > ...
4 years, 10 months ago (2016-02-11 10:47:08 UTC) #42
philipj_slow
A few more comments on the code, but I haven't reviewed the tests at all. ...
4 years, 10 months ago (2016-02-11 14:31:01 UTC) #44
Guido Urdaneta
https://codereview.chromium.org/1661493002/diff/160001/third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.cpp File third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.cpp (right): https://codereview.chromium.org/1661493002/diff/160001/third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.cpp#newcode93 third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.cpp:93: const char kDefaultErrorName[] = "AbortError"; On 2016/02/11 14:31:01, philipj_OOO_til_Feb15 ...
4 years, 10 months ago (2016-02-11 17:00:13 UTC) #45
yhirano
https://codereview.chromium.org/1661493002/diff/140001/third_party/WebKit/Source/modules/mediastream/RTCVoidRequestPromiseImpl.cpp File third_party/WebKit/Source/modules/mediastream/RTCVoidRequestPromiseImpl.cpp (right): https://codereview.chromium.org/1661493002/diff/140001/third_party/WebKit/Source/modules/mediastream/RTCVoidRequestPromiseImpl.cpp#newcode35 third_party/WebKit/Source/modules/mediastream/RTCVoidRequestPromiseImpl.cpp:35: bool shouldFireCallback = m_requester && m_requester->shouldFireDefaultCallbacks() && m_resolver->executionContext() && ...
4 years, 10 months ago (2016-02-11 18:28:31 UTC) #46
Guido Urdaneta
https://codereview.chromium.org/1661493002/diff/140001/third_party/WebKit/Source/modules/mediastream/RTCVoidRequestPromiseImpl.cpp File third_party/WebKit/Source/modules/mediastream/RTCVoidRequestPromiseImpl.cpp (right): https://codereview.chromium.org/1661493002/diff/140001/third_party/WebKit/Source/modules/mediastream/RTCVoidRequestPromiseImpl.cpp#newcode35 third_party/WebKit/Source/modules/mediastream/RTCVoidRequestPromiseImpl.cpp:35: bool shouldFireCallback = m_requester && m_requester->shouldFireDefaultCallbacks() && m_resolver->executionContext() && ...
4 years, 10 months ago (2016-02-11 20:00:05 UTC) #47
yhirano
https://codereview.chromium.org/1661493002/diff/140001/third_party/WebKit/Source/modules/mediastream/RTCVoidRequestPromiseImpl.cpp File third_party/WebKit/Source/modules/mediastream/RTCVoidRequestPromiseImpl.cpp (right): https://codereview.chromium.org/1661493002/diff/140001/third_party/WebKit/Source/modules/mediastream/RTCVoidRequestPromiseImpl.cpp#newcode35 third_party/WebKit/Source/modules/mediastream/RTCVoidRequestPromiseImpl.cpp:35: bool shouldFireCallback = m_requester && m_requester->shouldFireDefaultCallbacks() && m_resolver->executionContext() && ...
4 years, 10 months ago (2016-02-11 21:56:30 UTC) #48
Guido Urdaneta
https://codereview.chromium.org/1661493002/diff/140001/third_party/WebKit/Source/modules/mediastream/RTCVoidRequestPromiseImpl.cpp File third_party/WebKit/Source/modules/mediastream/RTCVoidRequestPromiseImpl.cpp (right): https://codereview.chromium.org/1661493002/diff/140001/third_party/WebKit/Source/modules/mediastream/RTCVoidRequestPromiseImpl.cpp#newcode35 third_party/WebKit/Source/modules/mediastream/RTCVoidRequestPromiseImpl.cpp:35: bool shouldFireCallback = m_requester && m_requester->shouldFireDefaultCallbacks() && m_resolver->executionContext() && ...
4 years, 10 months ago (2016-02-11 22:27:36 UTC) #49
yhirano
https://codereview.chromium.org/1661493002/diff/240001/third_party/WebKit/Source/modules/mediastream/RTCVoidRequestPromiseImpl.cpp File third_party/WebKit/Source/modules/mediastream/RTCVoidRequestPromiseImpl.cpp (right): https://codereview.chromium.org/1661493002/diff/240001/third_party/WebKit/Source/modules/mediastream/RTCVoidRequestPromiseImpl.cpp#newcode26 third_party/WebKit/Source/modules/mediastream/RTCVoidRequestPromiseImpl.cpp:26: m_resolver->keepAliveWhilePending(); Sorry I didn't notice this before, but is ...
4 years, 10 months ago (2016-02-11 23:32:50 UTC) #50
Guido Urdaneta
https://codereview.chromium.org/1661493002/diff/240001/third_party/WebKit/Source/modules/mediastream/RTCVoidRequestPromiseImpl.cpp File third_party/WebKit/Source/modules/mediastream/RTCVoidRequestPromiseImpl.cpp (right): https://codereview.chromium.org/1661493002/diff/240001/third_party/WebKit/Source/modules/mediastream/RTCVoidRequestPromiseImpl.cpp#newcode26 third_party/WebKit/Source/modules/mediastream/RTCVoidRequestPromiseImpl.cpp:26: m_resolver->keepAliveWhilePending(); On 2016/02/11 23:32:50, yhirano wrote: > Sorry I ...
4 years, 10 months ago (2016-02-12 09:30:55 UTC) #51
yhirano
lgtm
4 years, 10 months ago (2016-02-12 17:26:32 UTC) #52
haraken
https://codereview.chromium.org/1661493002/diff/260001/third_party/WebKit/Source/modules/mediastream/MediaErrorState.cpp File third_party/WebKit/Source/modules/mediastream/MediaErrorState.cpp (right): https://codereview.chromium.org/1661493002/diff/260001/third_party/WebKit/Source/modules/mediastream/MediaErrorState.cpp#newcode117 third_party/WebKit/Source/modules/mediastream/MediaErrorState.cpp:117: return "Unsatisfiable constraint " + m_constraint; Shall we add: ...
4 years, 10 months ago (2016-02-13 15:07:18 UTC) #53
yhirano
https://codereview.chromium.org/1661493002/diff/260001/third_party/WebKit/Source/modules/mediastream/RTCVoidRequestPromiseImpl.cpp File third_party/WebKit/Source/modules/mediastream/RTCVoidRequestPromiseImpl.cpp (right): https://codereview.chromium.org/1661493002/diff/260001/third_party/WebKit/Source/modules/mediastream/RTCVoidRequestPromiseImpl.cpp#newcode39 third_party/WebKit/Source/modules/mediastream/RTCVoidRequestPromiseImpl.cpp:39: m_resolver->stop(); On 2016/02/13 15:07:18, haraken wrote: > > ActiveDOMObject::resume/suspend/stop ...
4 years, 10 months ago (2016-02-13 16:13:37 UTC) #54
yhirano
On 2016/02/13 16:13:37, yhirano wrote: > https://codereview.chromium.org/1661493002/diff/260001/third_party/WebKit/Source/modules/mediastream/RTCVoidRequestPromiseImpl.cpp > File third_party/WebKit/Source/modules/mediastream/RTCVoidRequestPromiseImpl.cpp > (right): > > https://codereview.chromium.org/1661493002/diff/260001/third_party/WebKit/Source/modules/mediastream/RTCVoidRequestPromiseImpl.cpp#newcode39 ...
4 years, 10 months ago (2016-02-13 17:40:08 UTC) #55
haraken
https://codereview.chromium.org/1661493002/diff/140001/third_party/WebKit/Source/modules/mediastream/RTCVoidRequestPromiseImpl.cpp File third_party/WebKit/Source/modules/mediastream/RTCVoidRequestPromiseImpl.cpp (right): https://codereview.chromium.org/1661493002/diff/140001/third_party/WebKit/Source/modules/mediastream/RTCVoidRequestPromiseImpl.cpp#newcode35 third_party/WebKit/Source/modules/mediastream/RTCVoidRequestPromiseImpl.cpp:35: bool shouldFireCallback = m_requester && m_requester->shouldFireDefaultCallbacks() && m_resolver->executionContext() && ...
4 years, 10 months ago (2016-02-15 01:31:32 UTC) #56
blink-reviews
It seems that nowhere is it written explicitly that a Promise must eventually be resolved ...
4 years, 10 months ago (2016-02-15 03:38:15 UTC) #57
chromium-reviews
It seems that nowhere is it written explicitly that a Promise must eventually be resolved ...
4 years, 10 months ago (2016-02-15 03:38:15 UTC) #58
philipj_slow
https://codereview.chromium.org/1661493002/diff/260001/third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.cpp File third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.cpp (right): https://codereview.chromium.org/1661493002/diff/260001/third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.cpp#newcode93 third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.cpp:93: // TODO(guidou): Update exception codes once the error-handling aspects ...
4 years, 10 months ago (2016-02-15 10:00:44 UTC) #59
philipj_slow
I've taken a look at the test too now. There's "the part about updating the ...
4 years, 10 months ago (2016-02-15 10:22:21 UTC) #60
Guido Urdaneta
https://codereview.chromium.org/1661493002/diff/260001/third_party/WebKit/LayoutTests/fast/mediastream/RTCPeerConnection-ice-promise.html File third_party/WebKit/LayoutTests/fast/mediastream/RTCPeerConnection-ice-promise.html (right): https://codereview.chromium.org/1661493002/diff/260001/third_party/WebKit/LayoutTests/fast/mediastream/RTCPeerConnection-ice-promise.html#newcode42 third_party/WebKit/LayoutTests/fast/mediastream/RTCPeerConnection-ice-promise.html:42: shouldBe(error.name, "TypeError") On 2016/02/15 10:22:21, philipj_UTC7 wrote: > "error.name" ...
4 years, 10 months ago (2016-02-15 16:56:52 UTC) #61
haraken
On 2016/02/15 16:56:52, Guido Urdaneta wrote: > https://codereview.chromium.org/1661493002/diff/260001/third_party/WebKit/LayoutTests/fast/mediastream/RTCPeerConnection-ice-promise.html > File > third_party/WebKit/LayoutTests/fast/mediastream/RTCPeerConnection-ice-promise.html > (right): > ...
4 years, 10 months ago (2016-02-15 22:39:59 UTC) #62
philipj_slow
https://codereview.chromium.org/1661493002/diff/280001/third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.cpp File third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.cpp (right): https://codereview.chromium.org/1661493002/diff/280001/third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.cpp#newcode93 third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.cpp:93: const ExceptionCode kDefaultErrorName = OperationError; Why not simply remove ...
4 years, 10 months ago (2016-02-16 05:44:08 UTC) #63
hta - Chromium
Spec references for leaving promises dangling: http://w3c.github.io/webrtc-pc/#widl-RTCPeerConnection-close-void - the "close" method does not resolve or ...
4 years, 10 months ago (2016-02-16 05:44:22 UTC) #64
Guido Urdaneta
philipj: added execution order tests for asynchronous execution of error callback. waiting for ScriptPromiseResolver::detach() to ...
4 years, 10 months ago (2016-02-16 17:39:37 UTC) #65
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1661493002/300001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1661493002/300001
4 years, 10 months ago (2016-02-16 17:58:42 UTC) #67
yhirano
I don't like returning undefined from a Promise returning function, per https://www.w3.org/2001/tag/doc/promises-guide#always-return-promises.
4 years, 10 months ago (2016-02-16 18:49:16 UTC) #68
haraken
On 2016/02/16 05:44:22, hta - Chromium wrote: > Spec references for leaving promises dangling: > ...
4 years, 10 months ago (2016-02-16 18:49:35 UTC) #69
haraken
LGTM
4 years, 10 months ago (2016-02-16 18:54:01 UTC) #70
haraken
On 2016/02/16 18:54:01, haraken wrote: > LGTM (Please address yhirano's comments and wait for ScriptPromiseResolver::detach() ...
4 years, 10 months ago (2016-02-16 18:55:53 UTC) #71
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2016-02-16 19:09:11 UTC) #73
Guido Urdaneta
On 2016/02/16 18:55:53, haraken wrote: > On 2016/02/16 18:54:01, haraken wrote: > > LGTM > ...
4 years, 10 months ago (2016-02-16 19:30:02 UTC) #74
yhirano
On 2016/02/16 19:30:02, Guido Urdaneta wrote: > On 2016/02/16 18:55:53, haraken wrote: > > On ...
4 years, 10 months ago (2016-02-16 19:40:57 UTC) #75
Guido Urdaneta
CL updated to use ScriptPromiseResolver::detach()
4 years, 10 months ago (2016-02-17 09:36:47 UTC) #76
philipj_slow
https://codereview.chromium.org/1661493002/diff/320001/third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.cpp File third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.cpp (right): https://codereview.chromium.org/1661493002/diff/320001/third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.cpp#newcode563 third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.cpp:563: return ScriptPromise::cast(scriptState, v8::Undefined(scriptState->isolate())); Is this change observable? I thought ...
4 years, 10 months ago (2016-02-18 02:31:56 UTC) #77
philipj_slow
LGTM assuming the test changes are made, but if it's unclear what I mean or ...
4 years, 10 months ago (2016-02-18 02:32:51 UTC) #78
Guido Urdaneta
https://codereview.chromium.org/1661493002/diff/340001/third_party/WebKit/LayoutTests/fast/mediastream/RTCPeerConnection-ice.html File third_party/WebKit/LayoutTests/fast/mediastream/RTCPeerConnection-ice.html (right): https://codereview.chromium.org/1661493002/diff/340001/third_party/WebKit/LayoutTests/fast/mediastream/RTCPeerConnection-ice.html#newcode55 third_party/WebKit/LayoutTests/fast/mediastream/RTCPeerConnection-ice.html:55: orderCounter = 0; On 2016/02/18 02:31:56, philipj_UTC7 wrote: > ...
4 years, 10 months ago (2016-02-18 12:30:22 UTC) #79
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1661493002/360001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1661493002/360001
4 years, 10 months ago (2016-02-18 12:33:23 UTC) #82
commit-bot: I haz the power
Committed patchset #19 (id:360001)
4 years, 10 months ago (2016-02-18 14:23:05 UTC) #84
commit-bot: I haz the power
Patchset 19 (id:??) landed as https://crrev.com/e16c96f5a5b517a64fdbc5be75f05e359e04b461 Cr-Commit-Position: refs/heads/master@{#376163}
4 years, 10 months ago (2016-02-18 14:24:31 UTC) #86
philipj_slow
4 years, 10 months ago (2016-02-18 14:39:07 UTC) #87
Message was sent while issue was closed.
https://codereview.chromium.org/1661493002/diff/360001/third_party/WebKit/Lay...
File third_party/WebKit/LayoutTests/fast/mediastream/RTCPeerConnection-ice.html
(right):

https://codereview.chromium.org/1661493002/diff/360001/third_party/WebKit/Lay...
third_party/WebKit/LayoutTests/fast/mediastream/RTCPeerConnection-ice.html:57:
events = [];
could set window.events for clarity, like window.error, in some future CL poking
around this.

https://codereview.chromium.org/1661493002/diff/360001/third_party/WebKit/Lay...
third_party/WebKit/LayoutTests/fast/mediastream/RTCPeerConnection-ice.html:67:
shouldBe('events', '[1,2,3]');
Looks good!

Powered by Google App Engine
This is Rietveld 408576698