<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>131607</bug_id>
          
          <creation_ts>2014-04-14 00:46:08 -0700</creation_ts>
          <short_desc>Changing system time when using SetInterval()</short_desc>
          <delta_ts>2014-04-14 00:46:08 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>New Bugs</component>
          <version>525.x (Safari 3.2)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows 8</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Marek">Marek.Grochowski</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1000422</commentid>
    <comment_count>0</comment_count>
    <who name="Marek">Marek.Grochowski</who>
    <bug_when>2014-04-14 00:46:08 -0700</bug_when>
    <thetext>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:
&lt;p id=&quot;date&quot;&gt;&lt;/p&gt;

JS:
setInterval(SetTime, 1000);
function SetTime() {
document.getElementById(&apos;date&apos;).textContent=new Date();
}

OR:

(function loop() {
document.getElementById(&apos;date&apos;).textContent=new Date();
setTimeout(loop, 1000);
})();

StackOverflow question: http://stackoverflow.com/questions/23013324/webkit-setinterval-and-system-time-change</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>