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

[Web API] Missing interfaces in structured clone #21178

Closed
zcorpan opened this issue Sep 29, 2022 · 3 comments · Fixed by #21209
Closed

[Web API] Missing interfaces in structured clone #21178

zcorpan opened this issue Sep 29, 2022 · 3 comments · Fixed by #21209
Labels
Content:WebAPI Web API docs needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened.

Comments

@zcorpan
Copy link
Contributor

zcorpan commented Sep 29, 2022

MDN URL

https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Structured_clone_algorithm

What specific section or headline is this issue about?

Supported types

What information was incorrect, unhelpful, or incomplete?

I added a few interfaces in #21152 but:

Possibly further interfaces are still missing. Check for [Serializable] extended attribute in webidl: https://searchfox.org/mozilla-central/search?q=Serializable&path=.webidl&case=true&regexp=false

What did you expect to see?

All interfaces with [Serializable] listed in the table.

Do you have any supporting links, references, or citations?

No response

Do you have anything more you want to share?

No response

@github-actions github-actions bot added needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. Content:WebAPI Web API docs labels Sep 29, 2022
@wbamberg
Copy link
Collaborator

AFAICT webref lists the following Web APIs as serializable:

Blob
File
FileList
CryptoKey
FileSystemHandle
FileSystemHandle
FileSystemFileHandle
FileSystemDirectoryHandle
DOMPointReadOnly
DOMPoint
DOMRectReadOnly
DOMRect
DOMQuad
DOMMatrixReadOnly
DOMMatrix
ImageData
ImageBitmap
CropTarget
AudioData
VideoFrame
GPUCompilationMessage
GPUCompilationInfo
DOMException
RTCCertificate

@zloirock
Copy link
Contributor

zloirock commented Sep 30, 2022

@zcorpan interesting moment - by your link, I found that, for example, URLSearchParams is serializable in FF:

image

but it should not be:

image

@zcorpan
Copy link
Contributor Author

zcorpan commented Oct 5, 2022

@zloirock I found this bug https://bugzilla.mozilla.org/show_bug.cgi?id=1636761

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Content:WebAPI Web API docs needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants