3 ms·
“Google says portals allow users to navigate inside the content they are embedding --something that iframes do not allow for security reasons.” I love how they
by prepend 8y ago
“Google says portals allow users to navigate inside the content they are embedding --something that iframes do not allow for security reasons.”
I love how they gloss over the security issue here. This is the equivalent of “we made a new Ajax that can call from different domains.”
Reading through the article, I don’t see the security restriction addressed at all. I expect that this gets worked on when google submits this to the w3c to be made part of html.
- mshockwave 8y agothat's also my first impression of this article. but i (hope) believe google is aware of this security concern, otherwise they'll probably be the next Microsoft
- m1sta_ 8y agoGoogle search is Windows?
- burtonator2011 8y agoMy expectation is that you could only do this for the same domain.
- ChrisSD 8y agoIf that is true, how would that interact with signed exchanges[0]? [0] https://developers.google.com/web/updates/2018/11/signed-exchanges https://developers.google.com/web/updates/2018/11/signed-exc...
- stevens32 8y agoLooks like that's not the case based on the blog post linked in the article https://web.dev/hands-on-portals/ https://web.dev/hands-on-portals/
- dillondoyle 8y agoIt says that it only allows postMessage for cross domain communication. BUT I'm concerned it doesn't mention similar sandbox and feature policies as iFrame. It also mentions that it will allow the 'child' to know if it's inside a portal with window.portalHost but at least this github mentions you can minimally declare no-referrer https://github.com/web-platform-tests/wpt/blob/master/portals/portals-no-referrer.html https://github.com/web-platform-tests/wpt/blob/master/portal... Wouldn't the concern be ads ( I assume this is what this feature is intended for especially on mobile )? If there are no similar restrictions as a iframe safeFrame I can see a ton of ad scams that take advantage...
- pdxww 8y agoLuckily, uBlock Origin can block all portal tags entirely.