EventSource: Loss of reconnect time precision due to integer division
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 1 May 2013 17:15:46 +0000 (17:15 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 1 May 2013 17:15:46 +0000 (17:15 +0000)
commit7ab16402284b75ca57c11d0636839da02a259781
tree8beb3b13ea6445cf0d9b8a1adae28cc21928364b
parent0b7d4162bca31032f7734309d1632e463f6c34a0
EventSource: Loss of reconnect time precision due to integer division
https://bugs.webkit.org/show_bug.cgi?id=115358

Source/WebCore:

Make sure precision is not lost when converting the reconnect time from milliseconds to seconds.

Patch by Per-Erik Brodin <per-erik.brodin@ericsson.com> on 2013-05-01
Reviewed by Alexey Proskuryakov.

Test: http/tests/eventsource/eventsource-retry-precision.html

* page/EventSource.cpp:
(WebCore::EventSource::scheduleReconnect):

LayoutTests:

Patch by Per-Erik Brodin <per-erik.brodin@ericsson.com> on 2013-05-01
Reviewed by Alexey Proskuryakov.

* http/tests/eventsource/eventsource-retry-precision-expected.txt: Added.
* http/tests/eventsource/eventsource-retry-precision.html: Added.
* http/tests/eventsource/resources/precise-retry.asis: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@149436 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/http/tests/eventsource/eventsource-retry-precision-expected.txt [new file with mode: 0644]
LayoutTests/http/tests/eventsource/eventsource-retry-precision.html [new file with mode: 0644]
LayoutTests/http/tests/eventsource/resources/precise-retry.asis [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/page/EventSource.cpp