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

Issue 2738773004: No longer clamp setTimeout(..., 0) to 1ms. (Closed)

Created:
3 years, 9 months ago by Dan Elphick
Modified:
3 years, 8 months ago
CC:
chromium-reviews, blink-reviews-w3ctests_chromium.org, caseq+blink_chromium.org, lushnikov+blink_chromium.org, pfeldman+blink_chromium.org, apavlov+blink_chromium.org, devtools-reviews_chromium.org, blink-reviews, blink-reviews-frames_chromium.org, kozyatinskiy+blink_chromium.org, xlai (Olivia)
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

No longer clamp setTimeout(..., 0) to 1ms. Update several -expected.txt files to remove console logs that don't appear without the 1ms clamp as the test ends before they can. In all cases these are wpt tests which were never intended to test the console behaviour (and in fact will likely be removed soon in a different change). Update further tests to use setTimeout(..., 1) where the tests were really relying on this behaviour. BUG=402694 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel Review-Url: https://codereview.chromium.org/2738773004 Cr-Commit-Position: refs/heads/master@{#463591} Committed: https://chromium.googlesource.com/chromium/src/+/d8ade60fbe0ea954ecd5f186c36e6d0ac045c28c

Patch Set 1 #

Total comments: 1

Patch Set 2 : Add a TODO to try removing the singleShot guard #

Patch Set 3 : Add unit test to ensure 0ms setTimeouts aren't clamped to 1ms #

Patch Set 4 : update expected files (wpt tests no longer have console logging) #

Patch Set 5 : revert all throttler related changes #

Patch Set 6 : Add a semi-working fix for one failing test using a promise #

Patch Set 7 : Use nested setTimeouts due to changes in how commits are scheduled for Offscreen canvases. Added a … #

Patch Set 8 : revert set-breakpoint.html #

Patch Set 9 : merge in blink reformat changes (and correct some due to my previous mistakes in DOMTimerTest.cpp) #

Patch Set 10 : s/toDoubleValue/ToDoubleValue/ in DOMTimerTest.cpp #

Patch Set 11 : update webgl_conformance expectations since setTimeout(..., 0) now fails #

Patch Set 12 : Change const char* to const char* const to make a proper constant #

Patch Set 13 : update webgl2 conformance expectations as well #

Unified diffs Side-by-side diffs Delta from patch set Stats (+151 lines, -93 lines) Patch
M content/test/gpu/gpu_tests/webgl2_conformance_expectations.py View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +4 lines, -0 lines 0 comments Download
M content/test/gpu/gpu_tests/webgl_conformance_expectations.py View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-MessageChannel-transfer.html View 1 2 3 4 5 6 1 chunk +14 lines, -10 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-commit-frameless-doc.html View 1 2 3 4 5 6 1 chunk +10 lines, -6 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-placeholder-createImageBitmap.html View 1 2 3 4 5 6 1 chunk +12 lines, -10 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-placeholder-image-source.html View 1 2 3 4 5 6 2 chunks +18 lines, -17 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-resize.html View 1 2 3 4 5 6 3 chunks +29 lines, -26 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/security/mixedContent/insecure-plugin-in-iframe-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/security/offscreencanvas-placeholder-read-blocked-no-crossorigin.html View 1 2 3 4 5 6 1 chunk +18 lines, -10 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/security/promise-access-control-deny.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/paint/invalidation/svg/color-fill-currentColor-and-css.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/frame/DOMTimer.cpp View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/frame/DOMTimerTest.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 7 chunks +36 lines, -10 lines 0 comments Download

Messages

Total messages: 73 (39 generated)
Dan Elphick
Pavel, I've had to modify Common.Throttler to use a minimum of 1ms when scheduling using ...
3 years, 9 months ago (2017-03-08 13:58:58 UTC) #5
Sami
lgtm https://codereview.chromium.org/2738773004/diff/1/third_party/WebKit/Source/core/frame/DOMTimer.cpp File third_party/WebKit/Source/core/frame/DOMTimer.cpp (right): https://codereview.chromium.org/2738773004/diff/1/third_party/WebKit/Source/core/frame/DOMTimer.cpp#newcode96 third_party/WebKit/Source/core/frame/DOMTimer.cpp:96: std::max(singleShot ? 0.0 : oneMillisecond, interval * oneMillisecond); ...
3 years, 9 months ago (2017-03-08 14:15:55 UTC) #6
Dan Elphick
On 2017/03/08 14:15:55, Sami wrote: > lgtm > > https://codereview.chromium.org/2738773004/diff/1/third_party/WebKit/Source/core/frame/DOMTimer.cpp > File third_party/WebKit/Source/core/frame/DOMTimer.cpp (right): > ...
3 years, 9 months ago (2017-03-08 14:28:25 UTC) #7
Dan Elphick
Hi Pavel, could you take a look at the Throttler related changes?
3 years, 9 months ago (2017-03-14 11:14:40 UTC) #12
pfeldman
On 2017/03/14 11:14:40, Dan Elphick wrote: > Hi Pavel, could you take a look at ...
3 years, 9 months ago (2017-03-14 20:54:33 UTC) #13
Dan Elphick
On 2017/03/14 20:54:33, pfeldman_slow wrote: > On 2017/03/14 11:14:40, Dan Elphick wrote: > > Hi ...
3 years, 9 months ago (2017-03-14 22:10:49 UTC) #14
kozy
On 2017/03/14 22:10:49, Dan Elphick wrote: > Are you saying we shouldn't make setTimeout(..., 0) ...
3 years, 9 months ago (2017-03-14 22:52:48 UTC) #15
alex clarke (OOO till 29th)
On 2017/03/14 22:52:48, kozy wrote: > On 2017/03/14 22:10:49, Dan Elphick wrote: > > Are ...
3 years, 9 months ago (2017-03-15 11:16:07 UTC) #16
Dan Elphick
On 2017/03/14 22:52:48, kozy wrote: > On 2017/03/14 22:10:49, Dan Elphick wrote: > > Are ...
3 years, 9 months ago (2017-03-15 11:27:08 UTC) #17
pfeldman
I guess the question was "what made you change your mind", and it seems the ...
3 years, 9 months ago (2017-03-15 11:30:07 UTC) #18
pfeldman
(could you point to the flaky results in case you don't patch Throttler? - we ...
3 years, 9 months ago (2017-03-15 11:39:39 UTC) #19
Dan Elphick
On 2017/03/15 11:39:39, pfeldman_slow wrote: > (could you point to the flaky results in case ...
3 years, 9 months ago (2017-03-15 11:45:15 UTC) #20
Dan Elphick
On 2017/03/15 11:45:15, Dan Elphick wrote: > On 2017/03/15 11:39:39, pfeldman_slow wrote: > > (could ...
3 years, 9 months ago (2017-03-15 11:48:18 UTC) #21
pfeldman
> The inspector tests are not flaky without the change to setTimeout's internal > clamp. ...
3 years, 9 months ago (2017-03-16 00:28:00 UTC) #22
Dan Elphick
On 2017/03/16 00:28:00, pfeldman_slow wrote: > > The inspector tests are not flaky without the ...
3 years, 9 months ago (2017-03-16 14:45:43 UTC) #23
Dan Elphick
On 2017/03/16 14:45:43, Dan Elphick wrote: > On 2017/03/16 00:28:00, pfeldman_slow wrote: > > > ...
3 years, 9 months ago (2017-03-20 13:14:19 UTC) #24
kozy
fix for set-breakpoint.html will be landed soon: https://codereview.chromium.org/2776523004/. Sorry for delay.
3 years, 9 months ago (2017-03-24 02:54:21 UTC) #26
Dan Elphick
On 2017/03/24 02:54:21, kozy wrote: > fix for set-breakpoint.html will be landed soon: > https://codereview.chromium.org/2776523004/. ...
3 years, 9 months ago (2017-03-24 10:20:17 UTC) #27
kozy
On 2017/03/24 10:20:17, Dan Elphick wrote: > On 2017/03/24 02:54:21, kozy wrote: > > fix ...
3 years, 9 months ago (2017-03-24 15:55:11 UTC) #28
Dan Elphick
On 2017/03/24 15:55:11, kozy wrote: > On 2017/03/24 10:20:17, Dan Elphick wrote: > > On ...
3 years, 9 months ago (2017-03-24 16:05:43 UTC) #29
pfeldman
lgtm
3 years, 9 months ago (2017-03-24 16:51:38 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/2738773004/80001
3 years, 9 months ago (2017-03-27 09:32:19 UTC) #33
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/416988)
3 years, 9 months ago (2017-03-27 10:39:51 UTC) #36
Dan Elphick
Justin, I've added the agreed nested setTimeouts to the offscreen canvas tests. Can you LGTM ...
3 years, 8 months ago (2017-04-07 15:44:30 UTC) #46
Justin Novosad
lgtm
3 years, 8 months ago (2017-04-07 18:54:39 UTC) #49
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/2738773004/140001
3 years, 8 months ago (2017-04-07 19:16:34 UTC) #53
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/426217)
3 years, 8 months ago (2017-04-07 21:49:46 UTC) #55
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/2738773004/180001
3 years, 8 months ago (2017-04-10 09:26:53 UTC) #58
Dan Elphick
PTAL Justin, I've updated the expectations file for the offscreen canvas webgl conformance tests since ...
3 years, 8 months ago (2017-04-10 14:00:47 UTC) #61
Justin Novosad
This is fine. I will take care of updating the WebGL tests. Thanks for bringing ...
3 years, 8 months ago (2017-04-10 14:17:15 UTC) #62
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/2738773004/200001
3 years, 8 months ago (2017-04-10 14:42:27 UTC) #65
commit-bot: I haz the power
Try jobs failed on following builders: mac_optional_gpu_tests_rel on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_optional_gpu_tests_rel/builds/8848)
3 years, 8 months ago (2017-04-10 15:24:20 UTC) #67
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/2738773004/240001
3 years, 8 months ago (2017-04-11 08:20:03 UTC) #70
commit-bot: I haz the power
3 years, 8 months ago (2017-04-11 09:57:19 UTC) #73
Message was sent while issue was closed.
Committed patchset #13 (id:240001) as
https://chromium.googlesource.com/chromium/src/+/d8ade60fbe0ea954ecd5f186c36e...

Powered by Google App Engine
This is Rietveld 408576698