Re:Webkit.js
by heydenberk on Friday June 20, 2014 @02:03PM
(#7921905)
It's a little contrived, but a "practical" use of this might be for an online HTML editor to embed the document (or display a preview) without any interference from the parent document.
[ Parent
| on HN ]
Re:Webkit.js
by schrodinger on Friday June 20, 2014 @02:04PM
(#7921909)
You can do that via iframe as well
If you allow custom HTML via an iframe and make it shareable you have to host the iframe from a different domain, otherwise it's XSS vulnerability heaven. The trick will be authentication because separate domains don't share sessions (and you wouldn't want a secured domain access to your session anyway) but you can do communication via postMessage.