WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
131607
Changing system time when using SetInterval()
https://bugs.webkit.org/show_bug.cgi?id=131607
Summary
Changing system time when using SetInterval()
Marek
Reported
2014-04-14 00:46:08 PDT
Using setInterval() or setTimeout() in Javascript code and changing system time backward for example 1 hour causes browser (newest Safari)/ or engine (older version of QT WebKit) to freeze. Sample code: HTML: <p id="date"></p> JS: setInterval(SetTime, 1000); function SetTime() { document.getElementById('date').textContent=new Date(); } OR: (function loop() { document.getElementById('date').textContent=new Date(); setTimeout(loop, 1000); })(); StackOverflow question:
http://stackoverflow.com/questions/23013324/webkit-setinterval-and-system-time-change
Attachments
Add attachment
proposed patch, testcase, etc.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug