<?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>24484</bug_id>
          
          <creation_ts>2014-02-04 08:46:56 +0000</creation_ts>
          <short_desc>Say &quot;provide a stable state&quot; if that is equivalent</short_desc>
          <delta_ts>2014-02-19 04:50:58 +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/#processing-model-4</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>
    
    <cc>philipj</cc>
    
    <cc>rafaelw</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>99655</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2014-02-04 08:46:56 +0000</bug_when>
    <thetext>Specification: http://www.whatwg.org/specs/web-apps/current-work/
Multipage: http://www.whatwg.org/C#processing-model-4
Complete: http://www.whatwg.org/c#processing-model-4
Referrer: 

Comment:
Say &quot;provide a stable state&quot; if that is equivalent

Posted from: 42.112.56.121
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1700.76 Safari/537.36 OPR/19.0.1326.45 (Edition Next)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99656</commentid>
    <comment_count>1</comment_count>
    <who name="Philip Jägenstedt">philipj</who>
    <bug_when>2014-02-04 08:50:11 +0000</bug_when>
    <thetext>http://www.whatwg.org/specs/web-apps/current-work/#pause says

&quot;If any asynchronously-running algorithms are awaiting a stable state, then run their synchronous section and then resume running their asynchronous algorithm. (See the event loop processing model definition above for details.)&quot;

This looks identical to &quot;provide a stable state&quot;, so just use that if it&apos;s equivalent.

(When trying to implement awaiting/providing a stable state, I nearly missed this bit because of the wording.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99658</commentid>
    <comment_count>2</comment_count>
    <who name="Philip Jägenstedt">philipj</who>
    <bug_when>2014-02-04 12:37:22 +0000</bug_when>
    <thetext>I&apos;d also like to know why a stable state should be provided here. In none of the places that pause tasks does it seems particularly important to do this, is there a potential deadlock I&apos;m missing?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99676</commentid>
    <comment_count>3</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-02-04 20:01:21 +0000</bug_when>
    <thetext>Consider the case of a page that create a video element, then does alert(&quot;Ok, I&apos;ve started the load!&quot;). The user sees the alert, thinks &quot;I&apos;ll go for lunch while it loads&quot;, comes back... and we haven&apos;t yet started the load, if we don&apos;t provide a stable state here.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99677</commentid>
    <comment_count>4</comment_count>
    <who name="">contributor</who>
    <bug_when>2014-02-04 20:01:28 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r8460.
Check-in comment: Fix one case where we provide a stable state but describe it oddly.
http://html5.org/tools/web-apps-tracker?from=8459&amp;to=8460</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99741</commentid>
    <comment_count>5</comment_count>
    <who name="Philip Jägenstedt">philipj</who>
    <bug_when>2014-02-05 03:49:43 +0000</bug_when>
    <thetext>(In reply to Ian &apos;Hixie&apos; Hickson from comment #3)
&gt; Consider the case of a page that create a video element, then does
&gt; alert(&quot;Ok, I&apos;ve started the load!&quot;). The user sees the alert, thinks &quot;I&apos;ll
&gt; go for lunch while it loads&quot;, comes back... and we haven&apos;t yet started the
&gt; load, if we don&apos;t provide a stable state here.

OK, I suppose that&apos;s reasonable.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100836</commentid>
    <comment_count>6</comment_count>
    <who name="Rafael Weinstein">rafaelw</who>
    <bug_when>2014-02-19 01:27:12 +0000</bug_when>
    <thetext>i think that it&apos;d be clearer in the spec to have one notion of &quot;do my stuff after script has done doing it&apos;s thing&quot;. i suggest refactoring the stable state stuff to use microtasks instead.

as for comment 3, i think it&apos;s not worth muddying a fairly clean concept by attempting to accommodate this (fairly exotic) use.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100851</commentid>
    <comment_count>7</comment_count>
    <who name="Philip Jägenstedt">philipj</who>
    <bug_when>2014-02-19 04:50:58 +0000</bug_when>
    <thetext>This bug is closed, so I filed https://www.w3.org/Bugs/Public/show_bug.cgi?id=24724 instead.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>