Bug 131607

Summary: Changing system time when using SetInterval()
Product: WebKit Reporter: Marek <Marek.Grochowski>
Component: New BugsAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal    
Priority: P2    
Version: 525.x (Safari 3.2)   
Hardware: PC   
OS: Windows 8   

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
Note You need to log in before you can comment on or make changes to this bug.