<?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>25007</bug_id>
          
          <creation_ts>2014-03-11 17:23:31 +0000</creation_ts>
          <short_desc>[imports]: Want New LinkImport method to return a promise.</short_desc>
          <delta_ts>2015-07-06 08:03:20 +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>HISTORICAL - Component Model</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>MOVED</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>
          
          <blocked>23278</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Morrita Hajime">morrita</reporter>
          <assigned_to name="Dimitri Glazkov">dglazkov</assigned_to>
          <cc>d</cc>
    
    <cc>jaffathecake</cc>
    
    <cc>mike</cc>
    
    <cc>public-webapps</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>102213</commentid>
    <comment_count>0</comment_count>
    <who name="Morrita Hajime">morrita</who>
    <bug_when>2014-03-11 17:23:31 +0000</bug_when>
    <thetext>There should be a way to wait an import being loaded using Promise.
This might be better to be a part of HTML standard, but it&apos;s fine to start from here.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102362</commentid>
    <comment_count>1</comment_count>
    <who name="Jake Archibald">jaffathecake</who>
    <bug_when>2014-03-14 10:17:06 +0000</bug_when>
    <thetext>Some details from the discussion at http://lists.whatwg.org/pipermail/whatwg-whatwg.org/2014-March/042201.html

* This should be .loaded(), &quot;ready&quot; will be used for non-load events, such as document.ready()
* This should reject with InvalidStateError if href isn&apos;t set

Should promise-vending functions without arguments take onFulfilled &amp; onRejected callbacks?

Eg, it&apos;s currently:

var promise = link.loaded().then(onFulfilled, onRejected);

Should we allow:

var promise = link.loaded(onFulfilled, onRejected);</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102376</commentid>
    <comment_count>2</comment_count>
    <who name="Domenic Denicola">d</who>
    <bug_when>2014-03-14 14:35:01 +0000</bug_when>
    <thetext>&gt; Should promise-vending functions without arguments take onFulfilled &amp; onRejected callbacks?

I don&apos;t like this. It&apos;s a needless inconsistency in the platform that sometimes you&apos;ll be interfacing with promise objects through the normal interface and sometimes you&apos;ll be bypassing that.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104846</commentid>
    <comment_count>3</comment_count>
    <who name="Dimitri Glazkov">dglazkov</who>
    <bug_when>2014-04-30 19:16:54 +0000</bug_when>
    <thetext>Maybe replace .import with this?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104899</commentid>
    <comment_count>4</comment_count>
    <who name="Jake Archibald">jaffathecake</who>
    <bug_when>2014-05-01 08:00:22 +0000</bug_when>
    <thetext>I&apos;m hoping we can get .loaded() on other link types (CSS, rel=preload), see http://lists.whatwg.org/pipermail/whatwg-whatwg.org/2014-March/042201.html

Not against .import() vending a promise though, especially if a general .loaded() method meets resistance or apathy.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>106434</commentid>
    <comment_count>5</comment_count>
    <who name="Jake Archibald">jaffathecake</who>
    <bug_when>2014-05-20 10:22:19 +0000</bug_when>
    <thetext>In http://dev.w3.org/csswg/css-font-loading/#dom-fontface-loaded .loaded is a property, not a method.

link.loaded should be a property for consistency.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>121626</commentid>
    <comment_count>6</comment_count>
    <who name="Hayato Ito">hayato</who>
    <bug_when>2015-07-06 08:03:20 +0000</bug_when>
    <thetext>Moved to https://github.com/w3c/webcomponents/issues/212</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>