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

Issue 1010393002: Fix issue of localDescription and remoteDescription getter. (Closed)

Created:
5 years, 9 months ago by changbin
Modified:
5 years, 7 months ago
CC:
blink-reviews, tommyw+watchlist_chromium.org, blink-reviews-bindings_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Fix issue of localDescription and remoteDescription getter. Current implementation returns a new RTCSessionDescription instance when get localDescription and remoteDescription value. This causes error of Javascript equality check. The CL fixes above issue. BUG= Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=195576

Patch Set 1 #

Patch Set 2 : ActiveDomObject. #

Total comments: 3

Patch Set 3 : Use SetWrapperReferenceTo. #

Total comments: 3

Patch Set 4 : Set sessionDescription value when RTCVoidRequestImpl::requestSucceeded(). #

Patch Set 5 : Add m_pendingLocalDescription. #

Total comments: 7

Patch Set 6 : Update. #

Total comments: 2

Patch Set 7 : Rebease and add GC in test case. #

Patch Set 8 : Fix test case crash. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+109 lines, -20 lines) Patch
M LayoutTests/fast/mediastream/RTCPeerConnection-localDescription.html View 1 2 3 4 5 6 2 chunks +8 lines, -2 lines 0 comments Download
M LayoutTests/fast/mediastream/RTCPeerConnection-localDescription-expected.txt View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M LayoutTests/fast/mediastream/RTCPeerConnection-remoteDescription.html View 1 2 3 4 5 6 2 chunks +8 lines, -2 lines 0 comments Download
M LayoutTests/fast/mediastream/RTCPeerConnection-remoteDescription-expected.txt View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M Source/modules/mediastream/RTCPeerConnection.h View 1 2 3 4 5 4 chunks +12 lines, -2 lines 0 comments Download
M Source/modules/mediastream/RTCPeerConnection.cpp View 1 2 3 4 5 8 chunks +50 lines, -7 lines 0 comments Download
M Source/modules/mediastream/RTCPeerConnection.idl View 1 2 3 4 5 6 7 1 chunk +4 lines, -2 lines 0 comments Download
M Source/modules/mediastream/RTCSessionDescription.idl View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M Source/modules/mediastream/RTCVoidRequestImpl.h View 1 2 3 4 5 2 chunks +8 lines, -2 lines 0 comments Download
M Source/modules/mediastream/RTCVoidRequestImpl.cpp View 1 2 3 4 5 2 chunks +6 lines, -3 lines 0 comments Download
M public/platform/WebRTCSessionDescription.h View 1 2 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 52 (7 generated)
changbin
PTAL. Thanks! Step to reproduce the issue, 1. open Chrome debug console, 2. # 'var ...
5 years, 9 months ago (2015-03-18 06:53:52 UTC) #2
changbin
PTAL. Thanks! Step to reproduce the issue, 1. open Chrome debug console, 2. # 'var ...
5 years, 9 months ago (2015-03-18 06:53:54 UTC) #3
changbin
ping
5 years, 8 months ago (2015-03-30 05:04:40 UTC) #4
changbin
Hi all, do you have any comments? This issue blocks our downstream testing.
5 years, 8 months ago (2015-04-17 08:37:38 UTC) #6
jochen (gone - plz use gerrit)
RTCSessionDescription should be an active dom object to keep its wrapper alive
5 years, 8 months ago (2015-04-17 11:26:46 UTC) #7
changbin
On 2015/04/17 11:26:46, jochen wrote: > RTCSessionDescription should be an active dom object to keep ...
5 years, 8 months ago (2015-04-20 01:55:24 UTC) #8
jochen (gone - plz use gerrit)
On 2015/04/20 at 01:55:24, changbin.shao wrote: > On 2015/04/17 11:26:46, jochen wrote: > > RTCSessionDescription ...
5 years, 8 months ago (2015-04-20 06:49:17 UTC) #9
jochen (gone - plz use gerrit)
On 2015/04/20 at 01:55:24, changbin.shao wrote: > On 2015/04/17 11:26:46, jochen wrote: > > RTCSessionDescription ...
5 years, 8 months ago (2015-04-20 06:49:18 UTC) #10
changbin
On 2015/04/20 06:49:18, jochen wrote: > On 2015/04/20 at 01:55:24, changbin.shao wrote: > > On ...
5 years, 8 months ago (2015-04-21 06:07:09 UTC) #11
jochen (gone - plz use gerrit)
On 2015/04/21 at 06:07:09, changbin.shao wrote: > On 2015/04/20 06:49:18, jochen wrote: > > On ...
5 years, 8 months ago (2015-04-21 09:46:43 UTC) #12
changbin
Try to make RTCSessionDescription an active dom object. PTAL. jochen@ Could you please point out ...
5 years, 8 months ago (2015-04-22 06:13:57 UTC) #13
jochen (gone - plz use gerrit)
https://codereview.chromium.org/1010393002/diff/20001/Source/modules/mediastream/RTCSessionDescription.cpp File Source/modules/mediastream/RTCSessionDescription.cpp (right): https://codereview.chromium.org/1010393002/diff/20001/Source/modules/mediastream/RTCSessionDescription.cpp#newcode110 Source/modules/mediastream/RTCSessionDescription.cpp:110: return false; hasPendingActivity should return true as long as ...
5 years, 8 months ago (2015-04-22 14:48:40 UTC) #14
changbin
https://codereview.chromium.org/1010393002/diff/20001/Source/modules/mediastream/RTCSessionDescription.cpp File Source/modules/mediastream/RTCSessionDescription.cpp (right): https://codereview.chromium.org/1010393002/diff/20001/Source/modules/mediastream/RTCSessionDescription.cpp#newcode110 Source/modules/mediastream/RTCSessionDescription.cpp:110: return false; On 2015/04/22 14:48:40, jochen wrote: > hasPendingActivity ...
5 years, 8 months ago (2015-04-24 09:22:33 UTC) #15
jochen (gone - plz use gerrit)
+jl for bindings / idl i'm not entirely sure what the semantics of the RTC ...
5 years, 8 months ago (2015-04-27 19:13:40 UTC) #17
Jens Widell
On 2015/04/17 11:26:46, jochen wrote: > RTCSessionDescription should be an active dom object to keep ...
5 years, 7 months ago (2015-04-28 10:59:23 UTC) #18
Jens Widell
> +haraken, so he can correct me if I'm totally wrong. And now actually adding ...
5 years, 7 months ago (2015-04-28 11:00:13 UTC) #20
haraken
On 2015/04/28 11:00:13, Jens Widell wrote: > > +haraken, so he can correct me if ...
5 years, 7 months ago (2015-04-28 11:18:35 UTC) #21
Jens Widell
On 2015/04/28 11:18:35, haraken wrote: > On 2015/04/28 11:00:13, Jens Widell wrote: > > > ...
5 years, 7 months ago (2015-04-28 11:21:45 UTC) #22
haraken
On 2015/04/28 11:21:45, Jens Widell wrote: > On 2015/04/28 11:18:35, haraken wrote: > > On ...
5 years, 7 months ago (2015-04-28 11:26:43 UTC) #23
Jens Widell
On 2015/04/28 11:26:43, haraken wrote: > On 2015/04/28 11:21:45, Jens Widell wrote: > > On ...
5 years, 7 months ago (2015-04-28 11:30:46 UTC) #24
haraken
On 2015/04/28 11:30:46, Jens Widell wrote: > On 2015/04/28 11:26:43, haraken wrote: > > On ...
5 years, 7 months ago (2015-04-28 11:39:44 UTC) #25
Jens Widell
On 2015/04/28 11:39:44, haraken wrote: > On 2015/04/28 11:30:46, Jens Widell wrote: > > On ...
5 years, 7 months ago (2015-04-28 12:12:00 UTC) #26
changbin
Hi, all, thanks a lot for your detailed review comments! I have updated patch to ...
5 years, 7 months ago (2015-05-04 06:15:51 UTC) #27
Jens Widell
https://codereview.chromium.org/1010393002/diff/40001/Source/modules/mediastream/RTCPeerConnection.cpp File Source/modules/mediastream/RTCPeerConnection.cpp (right): https://codereview.chromium.org/1010393002/diff/40001/Source/modules/mediastream/RTCPeerConnection.cpp#newcode369 Source/modules/mediastream/RTCPeerConnection.cpp:369: m_remoteDescription = sessionDescription; I'm unsure exactly how things work ...
5 years, 7 months ago (2015-05-04 06:44:23 UTC) #28
changbin
Update CL. PTAL. https://codereview.chromium.org/1010393002/diff/40001/Source/modules/mediastream/RTCPeerConnection.cpp File Source/modules/mediastream/RTCPeerConnection.cpp (right): https://codereview.chromium.org/1010393002/diff/40001/Source/modules/mediastream/RTCPeerConnection.cpp#newcode369 Source/modules/mediastream/RTCPeerConnection.cpp:369: m_remoteDescription = sessionDescription; Agree and thanks:) ...
5 years, 7 months ago (2015-05-04 10:12:23 UTC) #29
Jens Widell
https://codereview.chromium.org/1010393002/diff/40001/Source/modules/mediastream/RTCPeerConnection.cpp File Source/modules/mediastream/RTCPeerConnection.cpp (right): https://codereview.chromium.org/1010393002/diff/40001/Source/modules/mediastream/RTCPeerConnection.cpp#newcode369 Source/modules/mediastream/RTCPeerConnection.cpp:369: m_remoteDescription = sessionDescription; On 2015/05/04 10:12:23, changbin wrote: > ...
5 years, 7 months ago (2015-05-04 10:20:50 UTC) #30
changbin
PTAL. jl@ Also ping the owners.
5 years, 7 months ago (2015-05-05 06:08:57 UTC) #31
Jens Widell
https://codereview.chromium.org/1010393002/diff/80001/Source/modules/mediastream/RTCPeerConnection.cpp File Source/modules/mediastream/RTCPeerConnection.cpp (right): https://codereview.chromium.org/1010393002/diff/80001/Source/modules/mediastream/RTCPeerConnection.cpp#newcode644 Source/modules/mediastream/RTCPeerConnection.cpp:644: if (pending) { This code path has essentially nothing ...
5 years, 7 months ago (2015-05-05 06:31:20 UTC) #32
changbin
https://codereview.chromium.org/1010393002/diff/80001/Source/modules/mediastream/RTCPeerConnection.cpp File Source/modules/mediastream/RTCPeerConnection.cpp (right): https://codereview.chromium.org/1010393002/diff/80001/Source/modules/mediastream/RTCPeerConnection.cpp#newcode644 Source/modules/mediastream/RTCPeerConnection.cpp:644: if (pending) { On 2015/05/05 06:31:20, Jens Widell wrote: ...
5 years, 7 months ago (2015-05-05 07:02:30 UTC) #33
Jens Widell
https://codereview.chromium.org/1010393002/diff/80001/Source/modules/mediastream/RTCPeerConnection.cpp File Source/modules/mediastream/RTCPeerConnection.cpp (right): https://codereview.chromium.org/1010393002/diff/80001/Source/modules/mediastream/RTCPeerConnection.cpp#newcode644 Source/modules/mediastream/RTCPeerConnection.cpp:644: if (pending) { On 2015/05/05 07:02:29, changbin wrote: > ...
5 years, 7 months ago (2015-05-05 07:17:22 UTC) #34
changbin
https://codereview.chromium.org/1010393002/diff/80001/Source/modules/mediastream/RTCVoidRequestImpl.cpp File Source/modules/mediastream/RTCVoidRequestImpl.cpp (right): https://codereview.chromium.org/1010393002/diff/80001/Source/modules/mediastream/RTCVoidRequestImpl.cpp#newcode63 Source/modules/mediastream/RTCVoidRequestImpl.cpp:63: m_requester->updateLocalSessionDescriptionIfNeeded(true); On 2015/05/05 07:17:22, Jens Widell wrote: > On ...
5 years, 7 months ago (2015-05-05 07:32:19 UTC) #35
changbin
On 2015/05/05 07:32:19, changbin wrote: > https://codereview.chromium.org/1010393002/diff/80001/Source/modules/mediastream/RTCVoidRequestImpl.cpp > File Source/modules/mediastream/RTCVoidRequestImpl.cpp (right): > > https://codereview.chromium.org/1010393002/diff/80001/Source/modules/mediastream/RTCVoidRequestImpl.cpp#newcode63 > ...
5 years, 7 months ago (2015-05-05 07:39:07 UTC) #36
changbin
PTAL.
5 years, 7 months ago (2015-05-05 08:37:22 UTC) #37
Jens Widell
LGTM
5 years, 7 months ago (2015-05-05 11:29:50 UTC) #38
jochen (gone - plz use gerrit)
jl is happy so this CL lgtm
5 years, 7 months ago (2015-05-07 11:47:36 UTC) #39
tommi (sloooow) - chröme
lgtm
5 years, 7 months ago (2015-05-07 13:05:30 UTC) #40
haraken
LGTM https://codereview.chromium.org/1010393002/diff/100001/LayoutTests/fast/mediastream/RTCPeerConnection-localDescription.html File LayoutTests/fast/mediastream/RTCPeerConnection-localDescription.html (right): https://codereview.chromium.org/1010393002/diff/100001/LayoutTests/fast/mediastream/RTCPeerConnection-localDescription.html#newcode37 LayoutTests/fast/mediastream/RTCPeerConnection-localDescription.html:37: function requestSucceeded1() You might want to call a ...
5 years, 7 months ago (2015-05-07 13:12:39 UTC) #41
changbin
Add GC test in test case to test whether localDescription is mis-collected. However, it encountered ...
5 years, 7 months ago (2015-05-19 07:45:11 UTC) #42
haraken
The problem is that a DOM object that is pointed to by [SetWrapperReferenceTo] (i.e., RTCSessionDescription) ...
5 years, 7 months ago (2015-05-19 09:28:01 UTC) #44
Yuki
On 2015/05/19 09:28:01, haraken wrote: > The problem is that a DOM object that is ...
5 years, 7 months ago (2015-05-19 13:06:07 UTC) #45
haraken
On 2015/05/19 13:06:07, Yuki wrote: > On 2015/05/19 09:28:01, haraken wrote: > > The problem ...
5 years, 7 months ago (2015-05-19 22:56:34 UTC) #46
changbin
On 2015/05/19 22:56:34, haraken wrote: > On 2015/05/19 13:06:07, Yuki wrote: > > On 2015/05/19 ...
5 years, 7 months ago (2015-05-20 01:55:15 UTC) #47
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1010393002/140001
5 years, 7 months ago (2015-05-20 01:56:21 UTC) #50
commit-bot: I haz the power
Committed patchset #8 (id:140001) as https://src.chromium.org/viewvc/blink?view=rev&revision=195576
5 years, 7 months ago (2015-05-20 03:21:00 UTC) #51
phoglund_chromium
5 years, 7 months ago (2015-05-22 11:12:52 UTC) #52
Message was sent while issue was closed.
A revert of this CL (patchset #8 id:140001) has been created in
https://codereview.chromium.org/1152173003/ by phoglund@chromium.org.

The reason for reverting is: This patch breaks WebRTC browser tests (and,
indeed, most WebRTC functionality, for instance apprtc.appspot.com calls)..

Powered by Google App Engine
This is Rietveld 408576698