You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am not actually sure this is a problem. Note that JS objects can outlive their realm, e.g.
<!DOCTYPE html><iframesrcdoc="<script>window.hello = {};</script>"></iframe><script>consthello=frames[0].hello;frames[0].location.href="http://example.com/":
// `hello` is still a valid object</script>
So is there any issue with this also being the case for streams that act as bodies?
One might think there is a problem with the object creation done by various stream operations. But no, that works fine too. Extend the above:
I guess it might be accurate to say the realm isn't destroyed as long as someone holds a reference to it. You could still collect various things, e.g. the Document object and so on. But all the stuff streams needs to function is still there.
The text was updated successfully, but these errors were encountered:
When a request is made from a ReadableStream with an underlying source implemented by a developer, pull / cancel can be called after the realm destruction. @domenic, do you think it's OK as well?
Spinning off from the discussion in #388 (comment). /cc @yutakahirano
I am not actually sure this is a problem. Note that JS objects can outlive their realm, e.g.
So is there any issue with this also being the case for streams that act as bodies?
One might think there is a problem with the object creation done by various stream operations. But no, that works fine too. Extend the above:
I guess it might be accurate to say the realm isn't destroyed as long as someone holds a reference to it. You could still collect various things, e.g. the
Document
object and so on. But all the stuff streams needs to function is still there.The text was updated successfully, but these errors were encountered: