- From: François Daoust via GitHub <sysbot+gh@w3.org>
- Date: Fri, 14 Apr 2017 15:22:28 +0000
- To: public-secondscreen@w3.org
tidoust has just created a new issue for https://github.com/w3c/presentation-api: == Termination should also "discard" the receiving browsing context == The steps to [terminate a presentation in a receiving browsing context](https://w3c.github.io/presentation-api/#dfn-terminate-a-presentation-in-a-receiving-browsing-context) tell the receiving user agent to [unload a document](http://www.w3.org/TR/html51/browsers.html#unloaded). I believe the intent is to close the context entirely, but there are a couple of additional steps needed to [close a browsing context](http://www.w3.org/TR/html51/browsers.html#close-a-browsing-context): - Remove the specified browsing context from the user interface (e.g., close or hide its tab in a tabbed browser). - [Discard](http://www.w3.org/TR/html51/browsers.html#a-browsing-context-is-discarded) the specified browsing context. The first point is UA-specific and could perhaps go without saying, but the second point is neeed to set [`window.closed`](http://www.w3.org/TR/html51/browsers.html#dom-window-closed). A quick test suggests that Chrome already does that correctly. In other words, I propose to revisit the bullet point we have to "If there is a receiving browsing context for P, and it has a document for P that is not unloaded, unload a document corresponding to that browsing context, remove that browsing context from the user interface and discard it". Please view or discuss this issue at https://github.com/w3c/presentation-api/issues/423 using your GitHub account
Received on Friday, 14 April 2017 15:22:35 UTC