<?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>25626</bug_id>
          
          <creation_ts>2014-05-09 00:38:37 +0000</creation_ts>
          <short_desc>Convert the various KeyAlgorithm interfaces into Dictionaries</short_desc>
          <delta_ts>2014-06-16 23:17:26 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Web Cryptography</product>
          <component>Web Cryptography API Document</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</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="Ryan Sleevi">sleevi</reporter>
          <assigned_to name="Ryan Sleevi">sleevi</assigned_to>
          <cc>ericroman</cc>
    
    <cc>public-webcrypto</cc>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>105523</commentid>
    <comment_count>0</comment_count>
    <who name="Ryan Sleevi">sleevi</who>
    <bug_when>2014-05-09 00:38:37 +0000</bug_when>
    <thetext>Raised during the W3C TAG review - https://github.com/w3ctag/spec-reviews/issues/3

This is an artifact of Bug 24657 and Bug 24767. The notion of KeyAlgorithm as an interface introduces inappropriate complexity into the language - and the [NoInterfaceObject] annotation is insufficient to hide it.

Rather than treating KeyAlgorithm (and derived) as Interfaces, convert them to a Dictionary within the specification.

Further, to avoid the WebIDL restriction that &quot;dictionaries cannot be attributes of an interface&quot; (See http://heycam.github.io/webidl/#idl-attributes ), the specification should dictate that the IDL Dictionaries are converted to ES objects, as defined in http://heycam.github.io/webidl/#es-dictionary

This implicitly will make the KeyPair interface structured clonable (because the members - Key objects - are clonable), as well as ensure that KeyAlgorithm objects themselves can be cloned via structured clone (a spec omission at this point)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105671</commentid>
    <comment_count>1</comment_count>
    <who name="Ryan Sleevi">sleevi</who>
    <bug_when>2014-05-12 04:55:49 +0000</bug_when>
    <thetext>*** Bug 24768 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>107901</commentid>
    <comment_count>2</comment_count>
    <who name="Ryan Sleevi">sleevi</who>
    <bug_when>2014-06-16 23:17:26 +0000</bug_when>
    <thetext>https://dvcs.w3.org/hg/webcrypto-api/rev/309495c2794e</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>