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

Issue 19494002: Distinguish actions registered with setTimeout() and setInterval(). (Closed)

Created:
7 years, 5 months ago by Yuta Kitamura
Modified:
7 years, 5 months ago
CC:
blink-reviews, Nils Barth (inactive), jsbell+bindings_chromium.org, eae+blinkwatch, abarth-chromium, marja+watch_chromium.org, dglazkov+blink, adamk+blink_chromium.org, haraken, Nate Chapin, do-not-use
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Distinguish actions registered with setTimeout() and setInterval(). This change makes actions created with setTimeout() and setInterval() distinguishable, so actions created with setTimeout() cannot be removed by clearInterval() (and vice versa). BUG=230705 R=kbr@chromium.org,haraken@chromium.org Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=154624

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fix test, and add a new test. #

Total comments: 9

Patch Set 3 : Address kbr's comments, and rebase to trunk. #

Patch Set 4 : Rebase again. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+162 lines, -41 lines) Patch
A LayoutTests/fast/dom/Window/clear-interval.html View 1 2 1 chunk +36 lines, -0 lines 0 comments Download
A LayoutTests/fast/dom/Window/clear-interval-expected.txt View 1 1 chunk +3 lines, -0 lines 0 comments Download
A LayoutTests/fast/dom/Window/set-and-clear-Timeout-and-Interval.html View 1 2 1 chunk +44 lines, -0 lines 0 comments Download
A LayoutTests/fast/dom/Window/set-and-clear-Timeout-and-Interval-expected.txt View 1 chunk +6 lines, -0 lines 0 comments Download
M Source/bindings/v8/custom/V8WindowCustom.cpp View 1 2 3 4 chunks +11 lines, -7 lines 0 comments Download
M Source/bindings/v8/custom/V8WorkerGlobalScopeCustom.cpp View 1 2 3 3 chunks +9 lines, -5 lines 0 comments Download
M Source/core/dom/ScriptExecutionContext.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/dom/ScriptExecutionContext.cpp View 1 2 2 chunks +11 lines, -6 lines 0 comments Download
M Source/core/page/DOMTimer.h View 1 2 2 chunks +15 lines, -8 lines 0 comments Download
M Source/core/page/DOMTimer.cpp View 1 2 4 chunks +21 lines, -9 lines 0 comments Download
M Source/core/page/DOMWindowTimers.cpp View 1 2 3 1 chunk +4 lines, -4 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
Yuta Kitamura
Hi, could you take a look? haraken: Please look at bindings/ kbr: Please look at ...
7 years, 5 months ago (2013-07-17 03:43:16 UTC) #1
haraken
The change looks good. Do we already have a test that verifies if timers are ...
7 years, 5 months ago (2013-07-17 03:49:35 UTC) #2
Yuta Kitamura
https://codereview.chromium.org/19494002/diff/1/LayoutTests/fast/dom/Window/set-and-clear-Timeout-and-Interval.html File LayoutTests/fast/dom/Window/set-and-clear-Timeout-and-Interval.html (right): https://codereview.chromium.org/19494002/diff/1/LayoutTests/fast/dom/Window/set-and-clear-Timeout-and-Interval.html#newcode34 LayoutTests/fast/dom/Window/set-and-clear-Timeout-and-Interval.html:34: window.clearTimeout(timeoutID); On 2013/07/17 03:49:35, haraken wrote: > What is ...
7 years, 5 months ago (2013-07-17 04:02:34 UTC) #3
Yuta Kitamura
On 2013/07/17 03:49:35, haraken wrote: > Do we already have a test that verifies if ...
7 years, 5 months ago (2013-07-17 04:11:13 UTC) #4
Yuta Kitamura
haraken: PTAL
7 years, 5 months ago (2013-07-17 05:26:54 UTC) #5
haraken
LGTM
7 years, 5 months ago (2013-07-17 05:31:40 UTC) #6
Yuta Kitamura
kbr: Do you have any comments on this?
7 years, 5 months ago (2013-07-18 09:42:54 UTC) #7
Ken Russell (switch to Gerrit)
Sorry for the delay. With the changes below, this LGTM. https://codereview.chromium.org/19494002/diff/9001/LayoutTests/fast/dom/Window/clear-interval.html File LayoutTests/fast/dom/Window/clear-interval.html (right): https://codereview.chromium.org/19494002/diff/9001/LayoutTests/fast/dom/Window/clear-interval.html#newcode16 ...
7 years, 5 months ago (2013-07-18 19:05:12 UTC) #8
Yuta Kitamura
kbr: I addressed most of your comments, except for InspectorInstrumentation::didRemoveTimer one. Could you take another ...
7 years, 5 months ago (2013-07-19 05:14:07 UTC) #9
Ken Russell (switch to Gerrit)
LGTM again https://codereview.chromium.org/19494002/diff/9001/Source/core/page/DOMTimer.cpp File Source/core/page/DOMTimer.cpp (right): https://codereview.chromium.org/19494002/diff/9001/Source/core/page/DOMTimer.cpp#newcode82 Source/core/page/DOMTimer.cpp:82: InspectorInstrumentation::didRemoveTimer(context, timeoutID == TimerTypeTimeout); // FIXME: Ditto. ...
7 years, 5 months ago (2013-07-19 20:28:36 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yutak@chromium.org/19494002/43001
7 years, 5 months ago (2013-07-22 02:31:06 UTC) #11
commit-bot: I haz the power
Change committed as 154624
7 years, 5 months ago (2013-07-22 03:39:52 UTC) #12
adamk
7 years, 5 months ago (2013-07-26 19:59:05 UTC) #13
Message was sent while issue was closed.
Heads-up: this was reverted in
https://src.chromium.org/viewvc/blink?revision=155001&view=revision on haraken's
recommendation that it's likely the cause of
https://code.google.com/p/chromium/issues/detail?id=263503

Powered by Google App Engine
This is Rietveld 408576698