w3c / webdriver-bidi

Bidirectional WebDriver protocol for browser automation
https://w3c.github.io/webdriver-bidi/
336 stars 35 forks source link

Should `browsingContext.contextDestroyed` event payload maybe also contain children? #573

Closed lutien closed 8 months ago

lutien commented 9 months ago

At the moment, the spec says that we should get the browsing context info with maxDepth = 0, which means that we should omit children. But since we want to send only one event in case of removing the whole tree of contexts, wouldn't it maybe be useful for the clients to have then information about removed children in the event, since there will be no separate event for the child contexts? Otherwise, I guess the clients would have to keep the tree of browsing contexts in the memory to know which child contexts should be removed (but maybe they have to do it anyway).