Commit 24f26a93 authored by jochen@chromium.org's avatar jochen@chromium.org

Fix NavigationScheduler to correctly delay tasks

This fixes a bug introduced in https://codereview.chromium.org/1305933007
which replaced a call to startOneShot that takes seconds with a call to
postDelayedTask that takes milliseconds

BUG=497761, 510398, 528666
R=alexclarke@chromium.org
TBR=haraken@chromium.org

Review URL: https://codereview.chromium.org/1304383004

git-svn-id: svn://svn.chromium.org/blink/trunk@201877 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent c25a597f
...@@ -421,7 +421,7 @@ void NavigationScheduler::startTimer() ...@@ -421,7 +421,7 @@ void NavigationScheduler::startTimer()
return; return;
Platform::current()->currentThread()->scheduler()->loadingTaskRunner()->postDelayedTask( Platform::current()->currentThread()->scheduler()->loadingTaskRunner()->postDelayedTask(
FROM_HERE, m_navigateTaskFactory->cancelAndCreate(), m_redirect->delay()); FROM_HERE, m_navigateTaskFactory->cancelAndCreate(), m_redirect->delay() * 1000.0);
InspectorInstrumentation::frameScheduledNavigation(m_frame, m_redirect->delay()); InspectorInstrumentation::frameScheduledNavigation(m_frame, m_redirect->delay());
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment