10:25
<Kaiido>
https://stackoverflow.com/questions/75026200/how-can-the-global-window-object-be-created-before-there-is-a-realm-in-existance?noredirect=1#comment132404888_75026200 It's unclear how the global object Window can be created and passed to JS since WebIDL's "new" asks to check if realm.[[GlobalObject]]'s implements the interface, but at this time the realm doesn't have a [[GlobalObject]] since that would be that Window object we need to create.
15:19
<Domenic>
It's essentially atomic. This is what is intended by https://html.spec.whatwg.org/multipage/document-sequences.html#creating-a-new-browsing-context step 9 being a single step instead of something like "1. create the Window; 2. create the realm and supply the Window to it."