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

Issue 1305933007: Make NavigationScheduler post loading tasks instead of timers (Closed)

Created:
5 years, 3 months ago by alex clarke (OOO till 29th)
Modified:
5 years, 3 months ago
CC:
blink-reviews, gavinp+loader_chromium.org, Nate Chapin, kinuko+watch, tyoshino+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Make NavigationScheduler post loading tasks instead of timers Similar to https://codereview.chromium.org/1312353004/ We would like to be able to prioritize loading tasks, but in order to do that we need to make sure loading tasks are posted to the right queue to make sure tasks run in the expected order. If this task is posted as a timer, and loading tasks are prioritzed, it's possible FrameHostMsg_DidStopLoading will be sent before the corresponding FrameHostMsg_DidStartLoading ipc which causes various browser tests to break. Must be submitted after https://codereview.chromium.org/1303153005/ BUG=497761, 510398 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=201780

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -8 lines) Patch
M Source/core/loader/NavigationScheduler.h View 2 chunks +3 lines, -2 lines 0 comments Download
M Source/core/loader/NavigationScheduler.cpp View 4 chunks +9 lines, -6 lines 4 comments Download

Messages

Total messages: 22 (9 generated)
alex clarke (OOO till 29th)
5 years, 3 months ago (2015-09-02 16:52:41 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/1305933007/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1305933007/1
5 years, 3 months ago (2015-09-03 11:35:36 UTC) #4
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/102727)
5 years, 3 months ago (2015-09-03 11:49:36 UTC) #6
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1305933007/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1305933007/1
5 years, 3 months ago (2015-09-03 18:45:27 UTC) #8
alex clarke (OOO till 29th)
haraken@chromium.org: Please review changes in this patch. I did try this with a oilpan build ...
5 years, 3 months ago (2015-09-03 19:52:34 UTC) #10
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 3 months ago (2015-09-03 20:01:24 UTC) #12
haraken
https://codereview.chromium.org/1305933007/diff/1/Source/core/loader/NavigationScheduler.cpp File Source/core/loader/NavigationScheduler.cpp (right): https://codereview.chromium.org/1305933007/diff/1/Source/core/loader/NavigationScheduler.cpp#newcode270 Source/core/loader/NavigationScheduler.cpp:270: , m_navigateTaskFactory(WTF::bind(&NavigationScheduler::navigateTask, this)) Sigbjorn: NavigationScheduler is a part of ...
5 years, 3 months ago (2015-09-03 23:43:30 UTC) #14
sof
https://codereview.chromium.org/1305933007/diff/1/Source/core/loader/NavigationScheduler.cpp File Source/core/loader/NavigationScheduler.cpp (right): https://codereview.chromium.org/1305933007/diff/1/Source/core/loader/NavigationScheduler.cpp#newcode270 Source/core/loader/NavigationScheduler.cpp:270: , m_navigateTaskFactory(WTF::bind(&NavigationScheduler::navigateTask, this)) On 2015/09/03 23:43:30, haraken wrote: > ...
5 years, 3 months ago (2015-09-04 06:28:34 UTC) #15
haraken
LGTM https://codereview.chromium.org/1305933007/diff/1/Source/core/loader/NavigationScheduler.cpp File Source/core/loader/NavigationScheduler.cpp (right): https://codereview.chromium.org/1305933007/diff/1/Source/core/loader/NavigationScheduler.cpp#newcode270 Source/core/loader/NavigationScheduler.cpp:270: , m_navigateTaskFactory(WTF::bind(&NavigationScheduler::navigateTask, this)) On 2015/09/04 06:28:34, sof wrote: ...
5 years, 3 months ago (2015-09-04 06:32:41 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1305933007/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1305933007/1
5 years, 3 months ago (2015-09-04 07:40:34 UTC) #18
commit-bot: I haz the power
Committed patchset #1 (id:1) as https://src.chromium.org/viewvc/blink?view=rev&revision=201780
5 years, 3 months ago (2015-09-04 07:44:48 UTC) #19
pdr.
A revert of this CL (patchset #1 id:1) has been created in https://codereview.chromium.org/1303153008/ by pdr@chromium.org. ...
5 years, 3 months ago (2015-09-04 17:29:42 UTC) #20
jochen (gone - plz use gerrit)
5 years, 3 months ago (2015-09-07 14:50:59 UTC) #22
Message was sent while issue was closed.
https://codereview.chromium.org/1305933007/diff/1/Source/core/loader/Navigati...
File Source/core/loader/NavigationScheduler.cpp (right):

https://codereview.chromium.org/1305933007/diff/1/Source/core/loader/Navigati...
Source/core/loader/NavigationScheduler.cpp:423: FROM_HERE,
m_navigateTaskFactory.cancelAndCreate(), m_redirect->delay());
this is wrong: startOneShot takes seconds, postDelayedTask takes milliseconds.

Powered by Google App Engine
This is Rietveld 408576698