<html>
<head>
<base href="https://bugs.webkit.org/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - Add WebIDL special operation support: serializer"
href="https://bugs.webkit.org/show_bug.cgi?id=156293">156293</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Add WebIDL special operation support: serializer
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr>
<tr>
<th>Product</th>
<td>WebKit
</td>
</tr>
<tr>
<th>Version</th>
<td>WebKit Nightly Build
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Unspecified
</td>
</tr>
<tr>
<th>OS</th>
<td>Unspecified
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>Normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P2
</td>
</tr>
<tr>
<th>Component</th>
<td>WebKit Misc.
</td>
</tr>
<tr>
<th>Assignee</th>
<td>webkit-unassigned@lists.webkit.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>alex@igalia.com
</td>
</tr></table>
<p>
<div>
<pre>We need the serializer operation support for the WebIDL in order to implement the WebRTC API:
<a href="https://github.com/w3c/webrtc-pc/issues/204">https://github.com/w3c/webrtc-pc/issues/204</a>
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:
<a href="http://heycam.github.io/webidl/#idl-serializers">http://heycam.github.io/webidl/#idl-serializers</a>
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.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>