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

Issue 2268153002: Make PendingScript MemoryCoordinatorClient. (Closed)

Created:
4 years, 3 months ago by tasak
Modified:
4 years, 3 months ago
Reviewers:
haraken, marja
CC:
chromium-reviews, sof, eae+blinkwatch, blink-reviews-dom_chromium.org, dglazkov+blink, blink-reviews, rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make PendingScript MemoryCoordinatorClient: - implement prepareToSuspend for background renderer's purge + suspend. prepareToSuspend is invoked before a background renderer is suspended. - PendingScript's prepareToSuspend cancels ScriptStreaming. - intent-to-implement-and-ship of background renderer's purge + suspend is https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/DK189tnM8l4 - one of the documents attached in the above intent is https://docs.google.com/document/d/1EgLimgxWK5DGhptnNVbEGSvVn6Q609ZJaBkLjEPRJvI/edit?usp=sharing BUG=635419 Committed: https://crrev.com/2635c95b75dd28be2678f1e4d61f72ff46192d27 Cr-Commit-Position: refs/heads/master@{#414404}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Removed unregisterClient. #

Patch Set 3 : Check only whether m_streamer exists or not. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -1 line) Patch
M third_party/WebKit/Source/core/dom/PendingScript.h View 3 chunks +5 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/dom/PendingScript.cpp View 1 2 3 chunks +9 lines, -0 lines 0 comments Download

Messages

Total messages: 38 (19 generated)
tasak
marja, would you review this CL? I revised the previous patch: https://codereview.chromium.org/2251893002/ I discussed with ...
4 years, 3 months ago (2016-08-24 06:07:43 UTC) #14
haraken
https://codereview.chromium.org/2268153002/diff/40001/third_party/WebKit/Source/core/dom/PendingScript.cpp File third_party/WebKit/Source/core/dom/PendingScript.cpp (right): https://codereview.chromium.org/2268153002/diff/40001/third_party/WebKit/Source/core/dom/PendingScript.cpp#newcode56 third_party/WebKit/Source/core/dom/PendingScript.cpp:56: MemoryCoordinator::instance().unregisterClient(this); You don't need to (shouldn't) call this. Oilpan's ...
4 years, 3 months ago (2016-08-24 06:11:12 UTC) #15
tasak
https://codereview.chromium.org/2268153002/diff/40001/third_party/WebKit/Source/core/dom/PendingScript.cpp File third_party/WebKit/Source/core/dom/PendingScript.cpp (right): https://codereview.chromium.org/2268153002/diff/40001/third_party/WebKit/Source/core/dom/PendingScript.cpp#newcode56 third_party/WebKit/Source/core/dom/PendingScript.cpp:56: MemoryCoordinator::instance().unregisterClient(this); On 2016/08/24 06:11:12, haraken wrote: > > You ...
4 years, 3 months ago (2016-08-24 07:44:54 UTC) #16
haraken
On 2016/08/24 07:44:54, tasak wrote: > https://codereview.chromium.org/2268153002/diff/40001/third_party/WebKit/Source/core/dom/PendingScript.cpp > File third_party/WebKit/Source/core/dom/PendingScript.cpp (right): > > https://codereview.chromium.org/2268153002/diff/40001/third_party/WebKit/Source/core/dom/PendingScript.cpp#newcode56 > ...
4 years, 3 months ago (2016-08-24 07:51:24 UTC) #17
marja
https://codereview.chromium.org/2268153002/diff/40001/third_party/WebKit/Source/core/dom/PendingScript.cpp File third_party/WebKit/Source/core/dom/PendingScript.cpp (right): https://codereview.chromium.org/2268153002/diff/40001/third_party/WebKit/Source/core/dom/PendingScript.cpp#newcode235 third_party/WebKit/Source/core/dom/PendingScript.cpp:235: if (resource() && resource()->isLoaded()) On 2016/08/24 07:44:53, tasak wrote: ...
4 years, 3 months ago (2016-08-24 09:02:55 UTC) #18
tasak
Thank you for review. https://codereview.chromium.org/2268153002/diff/40001/third_party/WebKit/Source/core/dom/PendingScript.cpp File third_party/WebKit/Source/core/dom/PendingScript.cpp (right): https://codereview.chromium.org/2268153002/diff/40001/third_party/WebKit/Source/core/dom/PendingScript.cpp#newcode235 third_party/WebKit/Source/core/dom/PendingScript.cpp:235: if (resource() && resource()->isLoaded()) On ...
4 years, 3 months ago (2016-08-24 11:01:03 UTC) #19
marja
I might not see the bigger picture of how this will work... But isn't code ...
4 years, 3 months ago (2016-08-24 11:05:12 UTC) #20
tasak
On 2016/08/24 11:05:12, marja wrote: > I might not see the bigger picture of how ...
4 years, 3 months ago (2016-08-24 11:11:40 UTC) #21
marja
It should be.
4 years, 3 months ago (2016-08-24 11:29:44 UTC) #24
marja
Like, that's how it's intended to be used :) If it's not ok, you might ...
4 years, 3 months ago (2016-08-24 11:30:39 UTC) #25
tasak
I see. Thank you, marja. On 2016/08/24 11:30:39, marja wrote: > Like, that's how it's ...
4 years, 3 months ago (2016-08-24 11:32:44 UTC) #26
marja
Code lgtm. What kind of test did you use for testing that this actually does ...
4 years, 3 months ago (2016-08-24 12:02:41 UTC) #28
haraken
LGTM
4 years, 3 months ago (2016-08-24 13:27:32 UTC) #29
tasak
Thank you.
4 years, 3 months ago (2016-08-25 10:46:01 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2268153002/80001
4 years, 3 months ago (2016-08-25 10:46:24 UTC) #32
commit-bot: I haz the power
Committed patchset #3 (id:80001)
4 years, 3 months ago (2016-08-25 12:22:38 UTC) #34
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/2635c95b75dd28be2678f1e4d61f72ff46192d27 Cr-Commit-Position: refs/heads/master@{#414404}
4 years, 3 months ago (2016-08-25 12:24:28 UTC) #36
marja
Hi again, did you see my question about tests above? :)
4 years, 3 months ago (2016-08-26 07:22:52 UTC) #37
tasak
4 years, 3 months ago (2016-08-26 07:29:04 UTC) #38
Message was sent while issue was closed.
On 2016/08/26 07:22:52, marja wrote:
> Hi again, did you see my question about tests above? :)

Sorry. I'm thinking of how to test this prepareToSuspend.
I think, it is necessary to check whether really the resource is released (i.e.
download and parsing are stopped) or not. And also we need to check whether the
resource is correctly reloaded when resumed or not.

Powered by Google App Engine
This is Rietveld 408576698