Open padenot opened 9 months ago
@youennf tells me that Safari fails for an unrelated reason -- I'll let him comment on the specifics, but it seems that there is some sort of consistency.
Here is another example similar to what https://github.com/web-platform-tests/wpt/issues/41635#issuecomment-1716262908 mentioned:
Suppose we have an ImageElement Img in origin A and transferring VideoFrame across origins is valid. The users can do the following things:
Since ImageBitmap doesn't define origin-clean in the VideoFrame case, ImageBitmap M1's origin-clean is true. However, creating an ImageBitmap M2 in origin B from an image source in origin A will set the M2's origin-clean to false. Shouldn't M1's origin-clean be false as well?
VideoFrame
is the same as ImageData
in this example since VideoFrame
can't be created from tainted sources. I think this is fine until / unless we want to unlock the ability to work with cross origin VideoFrame
objects - at which point we do need origin tracking.
There is https://wpt.fyi/results/webcodecs/videoFrame-serialization.crossAgentCluster.https.html?label=experimental&label=master&aligned, that two implementations out of three seem to pass -- that is, do not allow sending objects across agent clusters.
What do we want to do here, is there a use case for posting to other agents clusters?