Make VideoFrame Serializable
Categories
(Core :: Audio/Video: Web Codecs, task, P1)
Tracking
()
Tracking | Status | |
---|---|---|
firefox108 | --- | fixed |
People
(Reporter: chunmin, Assigned: chunmin)
References
(Blocks 1 open bug)
Details
Attachments
(7 files)
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review |
After VideoFrame
is implemented (bug 1774300), we need to make it Serializable
(in .webidl
)
Assignee | ||
Updated•2 years ago
|
Assignee | ||
Comment 1•2 years ago
|
||
This patch add Serializable
attribute to VideoFrame
and add some
necessary changes to make this buildable.
Some expectations of video-frame-serialization.any.is's wpts are
changed to PASS
since they are implemented in bug 1774300.
The Verify posting closed frames throws
is currently passed by luck so
the its expectation stays the same.
Assignee | ||
Comment 2•2 years ago
|
||
This patch implements {Read, Write}StructuredClone
for VideoFrame
so
VideoFrame
can be {de,}serialized.
Depends on D153685
Updated•2 years ago
|
Updated•2 years ago
|
Assignee | ||
Comment 3•2 years ago
|
||
Assignee | ||
Comment 4•2 years ago
|
||
Depends on D153686
Updated•2 years ago
|
Assignee | ||
Comment 5•2 years ago
|
||
By using --disable-e10s
, VideoFrame can be serialized in same process
but in different origins. To prevent the VideoFrame from being passed
across different origins, origins should be checked before constructing
a VideoFrame.
Depends on D159546
Assignee | ||
Comment 6•2 years ago
|
||
Depends on D159546
Updated•2 years ago
|
Pushed by cchang@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/7328aadd86e9 Add missing thread-safety checks r=padenot https://hg.mozilla.org/integration/autoland/rev/0009cdcc3e11 Add [Serializable] to VideoFrame r=padenot,smaug https://hg.mozilla.org/integration/autoland/rev/3db9d390aa0d Implement [Serializable] for VideoFrame r=padenot,smaug https://hg.mozilla.org/integration/autoland/rev/5a2fc97cac78 Add a wpt posting VideoFrame across agent cluster boundaries r=padenot,smaug https://hg.mozilla.org/integration/autoland/rev/b94e43f1e91f Add a wpt passing VideoFrame between main and worker r=smaug https://hg.mozilla.org/integration/autoland/rev/6ff613ee0977 Ensure videoframe serialization is same-origin r=smaug
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/36672 for changes under testing/web-platform/tests
Comment 9•2 years ago
•
|
||
Backed out 6 changesets (Bug 1774302) for causing bustages on VideoFrame.cpp.
Backout link
Push with failures <--> H
Failure Log
Upstream PR was closed without merging
Assignee | ||
Comment 11•2 years ago
|
||
To avoid an rooting hazard error from returning a raw JSObject* before
running the RefPtr<VidoeFrame>'s destructor, the RefPtr<VideoFrame>
needs to be destroyed before returning the raw JSObject*
Depends on D160155
Assignee | ||
Comment 12•2 years ago
|
||
D160561 should be able to fix the hazard issue.
Updated•2 years ago
|
Comment 13•2 years ago
|
||
Pushed by cchang@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/a91b2c948b8d Add missing thread-safety checks r=padenot https://hg.mozilla.org/integration/autoland/rev/89993b673e0f Add [Serializable] to VideoFrame r=padenot,smaug https://hg.mozilla.org/integration/autoland/rev/2deaf376e1b8 Implement [Serializable] for VideoFrame r=padenot,smaug https://hg.mozilla.org/integration/autoland/rev/ac7ae2db38ed Add a wpt posting VideoFrame across agent cluster boundaries r=padenot,smaug https://hg.mozilla.org/integration/autoland/rev/5b95b1a7c673 Add a wpt passing VideoFrame between main and worker r=smaug https://hg.mozilla.org/integration/autoland/rev/e880fd8436cc Ensure videoframe serialization is same-origin r=smaug https://hg.mozilla.org/integration/autoland/rev/8399201e3b08 Fix unrooted return value in VideoFrame deserialization r=sfink
Comment 14•2 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/a91b2c948b8d
https://hg.mozilla.org/mozilla-central/rev/89993b673e0f
https://hg.mozilla.org/mozilla-central/rev/2deaf376e1b8
https://hg.mozilla.org/mozilla-central/rev/ac7ae2db38ed
https://hg.mozilla.org/mozilla-central/rev/5b95b1a7c673
https://hg.mozilla.org/mozilla-central/rev/e880fd8436cc
https://hg.mozilla.org/mozilla-central/rev/8399201e3b08
Upstream PR merged by moz-wptsync-bot
Assignee | ||
Updated•10 months ago
|
Description
•