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

Issue 1808643003: RequestIdleCallback: Avoid retaining ScriptedIdleTaskController while a cancelled timeout is pending (Closed)

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

Description

RequestIdleCallback: Avoid retaining ScriptedIdleTaskController while a cancelled timeout is pending Ensure that ScriptedIdleTaskController does not get unnecessarily retained by a cancelled timeout task if the idle task has been triggered, but the document has gone away. BUG=595155 Committed: https://crrev.com/82f18cd2a7b718c4d5356222017d9855a53eb6f3 Cr-Commit-Position: refs/heads/master@{#381489} Committed: https://crrev.com/ac72812026ac388eb41d218a5ddf01747f301384 Cr-Commit-Position: refs/heads/master@{#381710}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Review comments #

Patch Set 3 : Fix non-oilpan #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -2 lines) Patch
M third_party/WebKit/Source/core/dom/ScriptedIdleTaskController.cpp View 1 2 1 chunk +11 lines, -2 lines 0 comments Download

Messages

Total messages: 28 (12 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/1808643003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1808643003/1
4 years, 9 months ago (2016-03-16 14:54:51 UTC) #2
rmcilroy
Elliot, could you please take a look. This is basically the patch you suggested.
4 years, 9 months ago (2016-03-16 15:19:06 UTC) #4
esprehn
lgtm https://codereview.chromium.org/1808643003/diff/1/third_party/WebKit/Source/core/dom/ScriptedIdleTaskController.cpp File third_party/WebKit/Source/core/dom/ScriptedIdleTaskController.cpp (right): https://codereview.chromium.org/1808643003/diff/1/third_party/WebKit/Source/core/dom/ScriptedIdleTaskController.cpp#newcode37 third_party/WebKit/Source/core/dom/ScriptedIdleTaskController.cpp:37: if (callbackWrapper->controller()) We normally assign to a local ...
4 years, 9 months ago (2016-03-16 16:32:18 UTC) #5
esprehn
I'm not sure it really leaks btw, it just lives as long as the timeout ...
4 years, 9 months ago (2016-03-16 16:33:14 UTC) #6
rmcilroy
Thanks for the review. On 2016/03/16 16:33:14, esprehn wrote: > I'm not sure it really ...
4 years, 9 months ago (2016-03-16 16:40:16 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1808643003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1808643003/20001
4 years, 9 months ago (2016-03-16 16:41:23 UTC) #11
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 9 months ago (2016-03-16 17:49:48 UTC) #13
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/82f18cd2a7b718c4d5356222017d9855a53eb6f3 Cr-Commit-Position: refs/heads/master@{#381489}
4 years, 9 months ago (2016-03-16 17:52:02 UTC) #15
fgorski
A revert of this CL (patchset #2 id:20001) has been created in https://codereview.chromium.org/1814443002/ by fgorski@chromium.org. ...
4 years, 9 months ago (2016-03-16 18:14:09 UTC) #16
esprehn
On 2016/03/16 18:14:09, fgorski wrote: > A revert of this CL (patchset #2 id:20001) has ...
4 years, 9 months ago (2016-03-16 18:17:25 UTC) #17
esprehn
It seems the Oilpan bot isn't in the CQ and was broken: https://build.chromium.org/p/chromium.webkit/builders/WebKit%20Linux%20non-Oilpan%20Builder/builds/2758/steps/compile/logs/stdio ../../third_party/WebKit/Source/core/dom/ScriptedIdleTaskController.cpp:37:41: error: ...
4 years, 9 months ago (2016-03-16 18:21:26 UTC) #18
esprehn
It seems the Oilpan bot isn't in the CQ and was broken: https://build.chromium.org/p/chromium.webkit/builders/WebKit%20Linux%20non-Oilpan%20Builder/builds/2758/steps/compile/logs/stdio ../../third_party/WebKit/Source/core/dom/ScriptedIdleTaskController.cpp:37:41: error: ...
4 years, 9 months ago (2016-03-16 18:21:27 UTC) #19
rmcilroy
On 2016/03/16 18:21:27, esprehn wrote: > It seems the Oilpan bot isn't in the CQ ...
4 years, 9 months ago (2016-03-17 13:15:22 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1808643003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1808643003/40001
4 years, 9 months ago (2016-03-17 13:34:30 UTC) #24
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 9 months ago (2016-03-17 15:13:45 UTC) #26
commit-bot: I haz the power
4 years, 9 months ago (2016-03-17 15:15:00 UTC) #28
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/ac72812026ac388eb41d218a5ddf01747f301384
Cr-Commit-Position: refs/heads/master@{#381710}

Powered by Google App Engine
This is Rietveld 408576698