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

Re: [presentation-api] Define (cross) origin relationship between opener and presenting page

From: Shih-Chiang Chien via GitHub <sysbot+gh@w3.org>
Date: Fri, 08 May 2015 03:11:27 +0000
To: public-secondscreen@w3.org
Message-ID: <issue_comment.created-100084589-1431054685-sysbot+gh@w3.org>
This has also been discussed in Mozilla 
[dev-webapi](https://groups.google.com/forum/#!topic/mozilla.dev.webapi/C5D8hEZmCLk).
 We can learn from `window.postMessage()` and add additional 
`targetOrigin` parameter in `PresentationSession.send()`.

```
void send( (DOMString or Blob or ArrayBuffer or ArrayBufferView) data,
 DOMString targetOrigin);
```
To send the message to the target regardless of origin, set the target
 origin to `"*"`. To restrict the message to same-origin targets only,
 without needing to explicitly state the origin, set the target origin
 to `"/"`.

-- 
GitHub Notif of comment by schien
See 
https://github.com/w3c/presentation-api/issues/63#issuecomment-100084589
Received on Friday, 8 May 2015 03:11:28 UTC

This archive was generated by hypermail 2.3.1 : Friday, 8 May 2015 03:11:28 UTC