Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update structured cloning for recent changes to HTML #1810

Merged
merged 2 commits into from
Jun 28, 2018
Merged

Update structured cloning for recent changes to HTML #1810

merged 2 commits into from
Jun 28, 2018

Conversation

stefhak
Copy link
Contributor

@stefhak stefhak commented Mar 20, 2018

Fixes #1089 (eventually, perhaps).

Do not merge - not ready (respec errors among other things).

@domenic PTAL.


Preview | Diff

@stefhak stefhak requested review from adam-be and jan-ivar March 20, 2018 12:58
@domenic
Copy link
Contributor

domenic commented Mar 20, 2018

This seems unlikely to be correct, as it references a specification that has known bugs in the area of serialization and cloning.

@stefhak
Copy link
Contributor Author

stefhak commented Mar 20, 2018

Aha, I assumed the spec was decent given it is a Recommendation.

[Update] Is html 5.3 any better?

@domenic
Copy link
Contributor

domenic commented Mar 21, 2018

No. The root problem is that the editors of that specification seem to copy our work (in the HTML Standard) blindly and incompletely, which leads to lots of bugs.

@fluffy
Copy link
Contributor

fluffy commented Mar 22, 2018

Could you say more about what the bugs are so we can decide if we can use this in WebRTC.

@domenic
Copy link
Contributor

domenic commented Mar 23, 2018

I'm sorry, I'm not in the business of helping specs add buggy dependencies that browsers cannot feasibly ship. I would suggest not using this in Web RTC, and instead using my original pull request, which depends on the actual maintained definition of structured cloning that is implemented in browsers.

@stefhak
Copy link
Contributor Author

stefhak commented Apr 5, 2018

Updated, now identical to @domenic's original PR. Perhaps we should use that one instead and close this PR.

Copy link
Member

@foolip foolip left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM as far as the references go. This would be more compact with Bikeshed, but I think you knew that :)

@foolip
Copy link
Member

foolip commented Apr 14, 2018

As for why it matters, the HTML Living Standard is the one we consider "authoritative" in Blink, i.e. we try to match it or fix it when it's wrong. It's also what people working in web-platform-tests will need to look at, since it's the most upstream and well maintained.

@stefhak
Copy link
Contributor Author

stefhak commented Apr 19, 2018

@domenic can you take a look now?

Copy link
Contributor

@domenic domenic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thanks!

webrtc.html Outdated

<li>Set <var>serialized</var>.[[\certificate]] to
a copy of the unstructured binary data in
<var>value</var>.[[<a>certificate</a>]].</li>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's [[Certificate]] with upper-case 'C' right? Also, we probably want <var>value</var>.[[\Certificate]]. Otherwise I see squiggly red underlines in the spec.

webrtc.html Outdated
a copy of the unstructured binary data in
<var>value</var>.[[<a>certificate</a>]].</li>

<li>Set <var>serialized</var>.[[\handle]] be a serialization of the
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/handle/KeyingMaterial/ ?

@stefhak
Copy link
Contributor Author

stefhak commented Apr 26, 2018

I need to look into your comments @jan-ivar

Copy link
Member

@adam-be adam-be left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With possible nit.


<ol>
<li>Initialize <var>value</var>'s <code>expires</code> attribute to
contain <var>serialized</var>.[[\Expires]].</li>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: Should we link these slots as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think that is necessary - the definition is like 10 lines before. WDYT?

@stefhak
Copy link
Contributor Author

stefhak commented May 31, 2018

I think this one is ready. However we should probably hold off merging until we've issued a new CR (if we do that anytime soon).

@aboba aboba merged commit 7ab932b into w3c:master Jun 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants