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

Issue 2038573002: [Android, RemotePlayback] Make RemotePlayback classes ActiveScriptWrappable's (Closed)

Created:
4 years, 6 months ago by whywhat
Modified:
4 years, 6 months ago
CC:
blink-reviews, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Android, RemotePlayback] Make RemotePlayback classes ActiveScriptWrappable's Keeps the V8 wrappers alive as long as there're event listeners or pending promises and such. BUG=616761 TEST=manual, see repro steps in the bug Committed: https://crrev.com/10633dff101889d287c524266420f3b37dc7a23c Cr-Commit-Position: refs/heads/master@{#398014}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Changed RemotePlayback to be ContextLifecycleObserver #

Total comments: 2

Patch Set 3 : Resolve promises when context is destroyed. #

Patch Set 4 : Don't observe execution context, just return the element's document. #

Messages

Total messages: 32 (10 generated)
whywhat
PTaL
4 years, 6 months ago (2016-06-02 15:02:50 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2038573002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2038573002/1
4 years, 6 months ago (2016-06-02 15:03:24 UTC) #4
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-06-02 16:32:20 UTC) #6
haraken
https://codereview.chromium.org/2038573002/diff/1/third_party/WebKit/Source/modules/remoteplayback/RemotePlayback.h File third_party/WebKit/Source/modules/remoteplayback/RemotePlayback.h (right): https://codereview.chromium.org/2038573002/diff/1/third_party/WebKit/Source/modules/remoteplayback/RemotePlayback.h#newcode29 third_party/WebKit/Source/modules/remoteplayback/RemotePlayback.h:29: , public LocalFrameLifecycleObserver Would you help me understand why ...
4 years, 6 months ago (2016-06-02 23:53:52 UTC) #8
whywhat
Changed RemotePlayback to be ContextLifecycleObserver
4 years, 6 months ago (2016-06-03 13:27:49 UTC) #9
whywhat
PTaL https://codereview.chromium.org/2038573002/diff/1/third_party/WebKit/Source/modules/remoteplayback/RemotePlayback.h File third_party/WebKit/Source/modules/remoteplayback/RemotePlayback.h (right): https://codereview.chromium.org/2038573002/diff/1/third_party/WebKit/Source/modules/remoteplayback/RemotePlayback.h#newcode29 third_party/WebKit/Source/modules/remoteplayback/RemotePlayback.h:29: , public LocalFrameLifecycleObserver On 2016/06/02 at 23:53:52, haraken ...
4 years, 6 months ago (2016-06-03 13:29:38 UTC) #10
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2038573002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2038573002/20001
4 years, 6 months ago (2016-06-03 13:29:53 UTC) #12
haraken
https://codereview.chromium.org/2038573002/diff/20001/third_party/WebKit/Source/modules/remoteplayback/RemotePlayback.cpp File third_party/WebKit/Source/modules/remoteplayback/RemotePlayback.cpp (right): https://codereview.chromium.org/2038573002/diff/20001/third_party/WebKit/Source/modules/remoteplayback/RemotePlayback.cpp#newcode152 third_party/WebKit/Source/modules/remoteplayback/RemotePlayback.cpp:152: void RemotePlayback::connectCancelled() Not directly related to this CL, I ...
4 years, 6 months ago (2016-06-03 14:14:36 UTC) #13
whywhat
Resolve promises when context is destroyed.
4 years, 6 months ago (2016-06-03 14:32:02 UTC) #14
whywhat
Thanks for the review! https://codereview.chromium.org/2038573002/diff/20001/third_party/WebKit/Source/modules/remoteplayback/RemotePlayback.cpp File third_party/WebKit/Source/modules/remoteplayback/RemotePlayback.cpp (right): https://codereview.chromium.org/2038573002/diff/20001/third_party/WebKit/Source/modules/remoteplayback/RemotePlayback.cpp#newcode152 third_party/WebKit/Source/modules/remoteplayback/RemotePlayback.cpp:152: void RemotePlayback::connectCancelled() On 2016/06/03 at ...
4 years, 6 months ago (2016-06-03 14:33:45 UTC) #15
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2038573002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2038573002/40001
4 years, 6 months ago (2016-06-03 14:34:12 UTC) #17
haraken
In terms of implementation, LGTM. - EventTarget needs to implement executionContext(). - If you just ...
4 years, 6 months ago (2016-06-03 14:36:11 UTC) #18
whywhat
On 2016/06/03 at 14:36:11, haraken wrote: > In terms of implementation, LGTM. > > - ...
4 years, 6 months ago (2016-06-03 14:54:28 UTC) #19
whywhat
Don't observe execution context, just return the element's document.
4 years, 6 months ago (2016-06-03 15:13:38 UTC) #20
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2038573002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2038573002/60001
4 years, 6 months ago (2016-06-03 15:14:03 UTC) #22
whywhat
On 2016/06/03 at 15:13:38, whywhat wrote: > Don't observe execution context, just return the element's ...
4 years, 6 months ago (2016-06-03 15:14:21 UTC) #23
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-06-03 16:54:00 UTC) #25
haraken
LGTM
4 years, 6 months ago (2016-06-03 23:29:26 UTC) #26
mlamouri (slow - plz ping)
lgtm
4 years, 6 months ago (2016-06-04 02:02:38 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2038573002/60001
4 years, 6 months ago (2016-06-06 11:12:02 UTC) #29
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 6 months ago (2016-06-06 12:53:08 UTC) #30
commit-bot: I haz the power
4 years, 6 months ago (2016-06-06 12:54:09 UTC) #32
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/10633dff101889d287c524266420f3b37dc7a23c
Cr-Commit-Position: refs/heads/master@{#398014}

Powered by Google App Engine
This is Rietveld 408576698