W3C home > Mailing lists > Public > public-secondscreen@w3.org > May 2015

Re: [presentation-api] Define return value for cancelled/missing session for startSession/joinSession

From: Shih-Chiang Chien via GitHub <sysbot+gh@w3.org>
Date: Thu, 14 May 2015 09:41:42 +0000
To: public-secondscreen@w3.org
Message-ID: <issue_comment.created-101986597-1431596501-sysbot+gh@w3.org>
I would prefer to reject this Promise while user dismiss the selection
 dialog. An unresolved Promise is "leaked" until page is closed and 
web developer cannot destroy it. I'll suggest using following UI 
behavior:
* Allow - promise resolved with a session
* Cancel - promise reject with a reason
* optionally this dialog can provide an option "block forever" which 
prevents a malicious page requesting session automatically.

-- 
GitHub Notif of comment by schien
See 
https://github.com/w3c/presentation-api/issues/20#issuecomment-101986597
Received on Thursday, 14 May 2015 09:41:47 UTC

This archive was generated by hypermail 2.3.1 : Thursday, 14 May 2015 09:41:47 UTC