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