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
Upon creation of an iframe and its initial about:blank document, I think we never end up assigning the new document state's origin or initiator origin.
I think this means that if we navigate forward to FOO and then traverse back to the initial about:blank Document, and it has been destroyed, repopulating it will reproduce a document with the about:blank URL (because its SHE's URL was set up right in https://html.spec.whatwg.org/#initialize-the-navigable), but with an opaque origin. I think this happens because the target SHE's document's state's initiator was not set, so we pass null in as sourceOrigin in https://html.spec.whatwg.org/#populating-a-session-history-entry:determining-the-origin-2, so we just return about:blank's origin which is opaque.
It would be good if someone like @domenic could sanity-check my finding here to see if I've actually identified an issue here or if I just missed something.
The text was updated successfully, but these errors were encountered:
I traced through your logic and I think you're correct. It would be good to set both initiator origin and origin, most likely!
which is the only place "origin" is assigned.
It's also populated in navigate, when heading to an about:blank/about:srcdoc document.
(In general, it's easy to create problems like this where we forgot the initial about:blank, precisely because it goes through none of the main algorithms...)
Upon creation of an iframe and its initial
about:blank
document, I think we never end up assigning the new document state's origin or initiator origin.I think this means that if we navigate forward to FOO and then traverse back to the initial about:blank Document, and it has been destroyed, repopulating it will reproduce a document with the about:blank URL (because its SHE's URL was set up right in https://html.spec.whatwg.org/#initialize-the-navigable), but with an opaque origin. I think this happens because the target SHE's document's state's initiator was not set, so we pass null in as sourceOrigin in https://html.spec.whatwg.org/#populating-a-session-history-entry:determining-the-origin-2, so we just return
about:blank
's origin which is opaque.So not only do we never set initiator origin (because we never enter #navigate, the only place initiator origin is written to: https://html.spec.whatwg.org/#beginning-navigation:document-state-initiator-origin) but I think we never end up setting document state's "origin" either, because even though the new child navigable creation steps run apply the history step (IIUC), they never seem to enter attempt to populate, which is the only place "origin" is assigned.
It would be good if someone like @domenic could sanity-check my finding here to see if I've actually identified an issue here or if I just missed something.
The text was updated successfully, but these errors were encountered: