Reviewed by Alexey.
http://bugs.webkit.org/show_bug.cgi?id=11730
Bug 11730: Meta HTTP Refresh that contains a fraction / decimal get ignored.
* dom/Document.cpp:
(WebCore::Document::processHttpEquiv): Parse the refresh interval as a double rather than an integer.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@17994
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2006-12-03 Mark Rowe <bdash@webkit.org>
+
+ Reviewed by Alexey.
+
+ http://bugs.webkit.org/show_bug.cgi?id=11730
+ Bug 11730: Meta HTTP Refresh that contains a fraction / decimal get ignored.
+
+ * dom/Document.cpp:
+ (WebCore::Document::processHttpEquiv): Parse the refresh interval as a double rather than an integer.
+
2006-12-03 Nikolas Zimmermann <zimmermann@kde.org>
Reviewed by Oliver.
if (pos == -1) // There can be no url (David)
{
bool ok = false;
- int delay = 0;
- delay = str.toInt(&ok);
+ double delay = 0;
+ delay = str.toDouble(&ok);
// We want a new history item if the refresh timeout > 1 second
if (ok && frame)
frame->loader()->scheduleRedirection(delay, frame->loader()->url().url(), delay <= 1);