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
The algorihtm reads like the event-loop where targetWindow is running would be the implied event-loop, however I agree there is some un-clarity because the algorithm runs implicitely in the context of the "source window", as exemplified by Step 2 reading "Let incumbentSettings be the incumbent settings object", where the "incumbent settings object" is that of the source window, not the target.
So since the two communicating windows are potentially running in different similar-origin-window-agent, the algorithm actually falls in the "non-obvious category" mentioned at:
The exception is algorithms involving or specifying cross-agent communication (e.g., between a window and a worker); for those cases, the implied event loop concept must not be relied upon(..) (source: https://html.spec.whatwg.org/#implied-event-loop)
And "window-post-message-steps" should explicit ally include an event-loop in Step 8 where it queues a task.
By just reading the algorithm it isn't clear which event loop is used for the task.
https://html.spec.whatwg.org/#window-post-message-steps
https://html.spec.whatwg.org/#queue-a-task
The text was updated successfully, but these errors were encountered: