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

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>22631</bug_id>
          
          <creation_ts>2013-07-10 00:00:44 +0000</creation_ts>
          <short_desc>&quot;If the currently running task is a task that was created by the setTimeout() method, and timeout is less than 4, then increase timeout to 4.&quot; no longer matches UAs</short_desc>
          <delta_ts>2013-07-26 23:27:51 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WHATWG</product>
          <component>HTML</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://www.whatwg.org/specs/web-apps/current-work/#timers</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>ian</cc>
    
    <cc>mike</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>90564</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2013-07-10 00:00:44 +0000</bug_when>
    <thetext>Specification: http://www.whatwg.org/specs/web-apps/current-work/
Multipage: http://www.whatwg.org/C#timers
Complete: http://www.whatwg.org/c#timers
Referrer: 

Comment:
&quot;If the currently running task is a task that was created by the setTimeout()
method, and timeout is less than 4, then increase timeout to 4.&quot; no longer
matches UAs

Posted from: 2620:0:1000:167c:e6ce:8fff:fe07:8094 by ian@hixie.ch
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.3 Safari/537.36</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90565</commentid>
    <comment_count>1</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-07-10 00:14:03 +0000</bug_when>
    <thetext>Firefox:
http://mxr.mozilla.org/mozilla-central/source/dom/base/nsGlobalWindow.cpp#10000

Blink: (WebKit apparently still the same)
https://code.google.com/p/chromium/codesearch#chromium/src/third_party/WebKit/Source/core/page/DOMTimer.cpp&amp;sq=package:chromium&amp;type=cs&amp;l=41


Note that the two algorithms are just the same now, and that the clamping only happens after a number of iterations through it. If it&apos;s an interval, timeout 0 is also disallowed, and the timeout is reset after the code is run.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91336</commentid>
    <comment_count>2</comment_count>
    <who name="">contributor</who>
    <bug_when>2013-07-26 23:27:51 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r8095.
Check-in comment: Refactor the timer code to match current practice in WebKit, Gecko, and Blink (the ones whose source I could examine)
http://html5.org/tools/web-apps-tracker?from=8094&amp;to=8095</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>