[Webkit-unassigned] [Bug 156293] New: Add WebIDL special operation support: serializer

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Apr 6 11:00:39 PDT 2016


https://bugs.webkit.org/show_bug.cgi?id=156293

            Bug ID: 156293
           Summary: Add WebIDL special operation support: serializer
    Classification: Unclassified
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebKit Misc.
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: alex at igalia.com

We need the serializer operation support for the WebIDL in order to implement the WebRTC API:

https://github.com/w3c/webrtc-pc/issues/204

We are going to add just the required support for our goals but not the complete serializer support, it will include support for:
   - just the keyword: serializer; It will return all the attributes of in an object.
   - map of entries with the attributes: serializer = {attribute1, attribute2, ...}
   - list of attributes: serializer = [attribute1, attribute2, ...]
   - DOMString and unsigned shor types

It creates a toJSON method that returns the serialized value converted into an ECMAScript value. For more information check the definition of the operation:

http://heycam.github.io/webidl/#idl-serializers

We are modifying already RTCSessionDescription and RTCIceCandidate idls to use the operation, that way we can remove the polyfill we were using in the examples for WebKit.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20160406/12587896/attachment.html>


More information about the webkit-unassigned mailing list