[Bug 25626] New: Convert the various KeyAlgorithm interfaces into Dictionaries

https://www.w3.org/Bugs/Public/show_bug.cgi?id=25626

            Bug ID: 25626
           Summary: Convert the various KeyAlgorithm interfaces into
                    Dictionaries
           Product: Web Cryptography
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Web Cryptography API Document
          Assignee: sleevi@google.com
          Reporter: sleevi@google.com
                CC: public-webcrypto@w3.org

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 "dictionaries cannot be
attributes of an interface" (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)

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Received on Friday, 9 May 2014 00:38:54 UTC