tc39 / proposal-shadowrealm

ECMAScript Proposal, specs, and reference implementation for Realms
https://tc39.es/proposal-shadowrealm/
1.41k stars 67 forks source link

ShadowRealms WPT Failures #396

Open mgaudet opened 5 months ago

mgaudet commented 5 months ago

Really appreciate the work that's happened to get web interfaces inside a ShadowRealm properly tested. I wanted to highlight some failures that I don't think are implementation specific, but rather test integration specific:

  1. /streams/readable-streams/cancel.any.shadowrealm.html fails because it calls into RandomPushSource, defined here, which uses setInterval.
  2. /streams/readable-streams/owning-type-video-frame.any.shadowrealm.html and friends can't run in a shadow realm because VideoFrame doesn't exist inside one.
caridy commented 5 months ago

/streams/readable-streams/cancel.any.shadowrealm.html fails because it calls into RandomPushSource, defined here, which uses setInterval.

We should resolve this one once we get setTimeout & co inside the shadow realm.