About the differences in the structured clone algorithm across 
implementations: I don't think those are listed anywhere. I know there are 
some because of the failures in 
https://wpt.fyi/results/html/infrastructure/safe-passing-of-structured-data?label=experimental&label=master&aligned,
 
but there might be others that aren't tested. Although it seems like some 
of the failures in the shared-array-buffer folder seem to be bugs with the 
tests rather than with the implementations.

For the record, I recently fixed in 
https://chromium-review.googlesource.com/c/chromium/src/+/3229544 one of 
Chromium's failures, where it was throwing a TypeError rather than a 
DataCloneException in one particular case. And it seems like the RegExp 
failures in Safari are fixed in the WebKit trunk / master branch.

On Thursday, October 28, 2021 at 8:56:15 PM UTC+2 yoav...@chromium.org 
wrote:

> On Thursday, October 28, 2021 at 12:42:10 PM UTC+2 jo...@igalia.com wrote:
>
>> This would be a great addition. Node.js also has been shipping this since 
>> v17.0.0 <https://nodejs.org/en/blog/release/v17.0.0/>.
>> On Thursday, October 28, 2021 at 5:12:32 AM UTC+8 fs...@chromium.org 
>> wrote:
>>
>>> This is amazing! :)
>>>
>>> I agree it shouldn't block this, but do we have anywhere written what 
>>> are the browser's differences on structured clone algorithms? Is it a spec 
>>> issue? Could we add WPT tests for it?
>>>
>>> On Wed, Oct 27, 2021 at 2:45 PM Andreu Botella <and...@andreubotella.com> 
>>> wrote:
>>>
>>>> * Contact emails*
>>>> and...@andreubotella.com, jbr...@chromium.org, su...@chromium.org 
>>>>
>>>
>>>> *Explainer*
>>>> https://github.com/whatwg/html/issues/793 
>>>>
>>>> *Specification*
>>>> https://html.spec.whatwg.org/#structured-cloning 
>>>>
>>>> * Summary*
>>>> Enables using the HTML structured clone algorithm synchronously for 
>>>> cloning and transferring objects within a single realm. 
>>>>
>>>> * Initial public proposal*
>>>> https://github.com/whatwg/html/issues/793 
>>>> https://github.com/whatwg/html/pull/3414 
>>>>
>>>> *Blink component*
>>>> Blink>Messaging 
>>>> <https://bugs.chromium.org/p/chromium/issues/list?q=component:Blink%3EMessaging>
>>>>  
>>>>
>>>> * TAG review*
>>>> This is just exposing existing browser functionality, with a two-line 
>>>> spec. It doesn’t seem like there’s much to discuss architecturally, but 
>>>> I’ll file for review if the community thinks it would help.
>>>
>>>
> I agree this doesn't need a TAG review, but for other reasons.
> This change has landed in HTML and is shipped in 2 engines, so there's no 
> need for a TAG review for that reason.
>  
>
>>
>>>>
>>>> *TAG review status*
>>>> Not applicable 
>>>>
>>>> * Risks*
>>>>
>>>> * Interoperability and Compatibility*
>>>> Low. There are some differences across the browsers’ implementations of 
>>>> the structured cloning algorithm, but they are very minor and already 
>>>> present in other APIs that use it.
>>>
>>>
> Are there tests that highlight those differences?
>  
>
>>
>>>>
>>>> Gecko: Shipped/Shipping (
>>>> https://bugzilla.mozilla.org/show_bug.cgi?id=1722576) 
>>>> Edge: No signal 
>>>> WebKit: Shipped/Shipping (
>>>> https://bugs.webkit.org/show_bug.cgi?id=228331) 
>>>
>>>
>>>>
>>>> Web developers: Positive (
>>>> https://github.com/whatwg/html/pull/3414#issuecomment-854051942 and 
>>>> following comments). There seems to be a lot of demand for a built-in deep 
>>>> clone, and while structured clone is not exactly that, it fulfills many of 
>>>> the use cases. 
>>>>
>>>> * Debuggability*
>>>> n/a 
>>>>
>>>> * Is this feature fully tested by web-platform-tests 
>>>> <https://chromium.googlesource.com/chromium/src/+/master/docs/testing/web_platform_tests.md>?*
>>>> Yes 
>>>> <https://wpt.fyi/results/html/webappapis/structured-clone?label=experimental&label=master&aligned>
>>>>  
>>>>
>>>> * Requires code in //chrome?*
>>>> False 
>>>>
>>>> * Tracking bug*
>>>> https://bugs.chromium.org/p/chromium/issues/detail?id=1233571 
>>>>
>>>> *Estimated milestones*
>>>> No milestones specified 
>>>>
>>>> * Link to entry on the Chrome Platform Status*
>>>> https://chromestatus.com/feature/5630001077551104 
>>>>
>>>> *Requesting approval to ship? *
>>>> Yes. This is a relatively small feature which exposes existing 
>>>> functionality.
>>>>
>>>> -- 
>>>> You received this message because you are subscribed to the Google 
>>>> Groups "blink-dev" group.
>>>>
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>>> an email to blink-dev+...@chromium.org.
>>>
>>>
>>>> To view this discussion on the web visit 
>>>> https://groups.google.com/a/chromium.org/d/msgid/blink-dev/e7299674-54df-4f4d-8c30-d922ebf4e47cn%40chromium.org
>>>>  
>>>> <https://groups.google.com/a/chromium.org/d/msgid/blink-dev/e7299674-54df-4f4d-8c30-d922ebf4e47cn%40chromium.org?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>>

-- 
You received this message because you are subscribed to the Google Groups 
"blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to blink-dev+unsubscr...@chromium.org.
To view this discussion on the web visit 
https://groups.google.com/a/chromium.org/d/msgid/blink-dev/317ff24c-090b-4862-8f3c-96bc865f6b04n%40chromium.org.

Reply via email to