Closed sadym-chromium closed 2 months ago
Open question: should the events for existing browsing contexts be emitted, if the subscription is already exist?
The Browser Testing and Tools Working Group just discussed Emit `browsingContext.contextCreated` while subscribing to the event globally
.
I misread the specification: The remote end subscribe steps is called with the actual contexts returned by update the event map, which contains all the top-level contexts which are not yet subscribed to the event.
The spec for "remote end subscribe steps" of
browsingContext.contextCreated
does not respect the global subscription (contexts=null
). This makes the behavior inconsistent with subscription to specific browsing contexts. Unless we want to get rid of this functionality (which is not implemented in Firefox nor in Chromium at the moment), we should fix the spec, so that the events are emitted for each existing browsing context before the global subscription command is finished.