-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Specify the presentation initialization algorithm #34
Comments
Initial versions of 7.1 - 7.4 are present in the current draft. 7.5 remains an open issue. |
Since the initial versions of the screen availability and start/join/close session algorithms have landed, I'm renaming this issue to "Specify the presentation initialization algorithm" to focus the efforts. |
Re the remaining open issue of the initialization algorithm, this is what we're missing: In http://w3c.github.io/presentation-api/#starting-a-presentation-session we state:
But we do not define the steps the UA is required to take in order to "create a new presentation session". For that, we should add prose to http://w3c.github.io/presentation-api/#presentationsession, like:
(We should then link to this I'm tagging this for F2F discussion/review. All - PRs welcome :-) |
Specification currently defines algorithms that are executed in an opening browsing context for startSession and joinSession methods. I believe that we are missing description of what is happening in the presenting browsing context when those methods are called. |
@obeletski Feel free to take a stab at this. A PR, or a suggestion for the editor to be integrated into the spec would be very welcome. It does not need to be perfect as we can iterate on it. |
PROPOSED RESOLUTION: Promise NavigatorPresentation.getSession() which resolves when the communication channel is established and rejects if the communication channel cannot be established See relevant discussion during the F2F in Berlin: |
I would like to share some earlier thinking [1] about initialization of a session in presenting browser context. Even though it is out of date after F2F meeting decisions [2] we might start iterating from it. [1] obeletski@ac9e215 |
@obeletski I interpret your response as such that it is no objection to the proposed resolution, rather further input. I recall we discussed the merits of using a promise over hanging the session object off of NavigatorPresentation at f2f and landed on the proposed resolution due to that. That discussion was apparently was not minuted. Please let me know if you have concerns. |
I have been doing some work on Presentation API shim that supports multiple controlling page with interface we agreed at F2F meeting. I documented created algorithms for presenting context in commit [1], WDYT? |
@obeletski Thanks, your patch seem to build without errors. I suspect you can fix the problem on your local machine by changing your xref repo. |
The latest Editor's Draft needs to define the algorithms for the following:
7.1 The Screen Availability algorithm
7.2 The Start Session algorithm
7.3 The Join Session algorithm
7.4 The Close Session algorithm
7.5 The Presentation Initialization algorithm
http://w3c.github.io/presentation-api/#algorithms
The text was updated successfully, but these errors were encountered: