<?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>21444</bug_id>
          
          <creation_ts>2013-03-30 15:48:58 +0000</creation_ts>
          <short_desc>FutureResolver&apos;s resolve algorithm uses wrong resolver in new handlers</short_desc>
          <delta_ts>2013-03-31 12:50:42 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebAppsWG</product>
          <component>DOM</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://dom.spec.whatwg.org/#concept-resolver-resolve</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="Chris Dumez">chris</reporter>
          <assigned_to name="Anne">annevk</assigned_to>
          <cc>mike</cc>
    
    <cc>www-dom</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>85173</commentid>
    <comment_count>0</comment_count>
    <who name="Chris Dumez">chris</who>
    <bug_when>2013-03-30 15:48:58 +0000</bug_when>
    <thetext>The resolve algorithm currently states:
&quot;&quot;&quot;
If value is a future, run these substeps and then terminate these steps:

    Let accept be a new future handler whose type is resolve and resolver is value&apos;s associated resolver.

    Let reject be a new future handler whose type is reject and resolver is value&apos;s associated resolver.

    Append accept and reject to value. 
&quot;&quot;&quot;

When implementing this in WebKit, I noticed that it did not work. I may be mistaken but I believe the new handlers&apos; resolver should not be &quot;value&quot;&apos;s associated resolver. Instead, it should be the *current* resolver.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85184</commentid>
    <comment_count>1</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2013-03-31 12:50:42 +0000</bug_when>
    <thetext>https://github.com/whatwg/dom/commit/7f7d424ebc52d7667adac007bfcb5521af309c49</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>