Google Chrome’s Portals: like iframes, but better, and worse.

What about iframes?

  • Embed an entire third-party experience seamlessly on a page
  • Render privileged data that is protected and sandboxed from the parent page
  • Communicate and share data and events in real-time with the parent page

What changes with Portals?

  • You can’t interact with the embedded page until it’s been fully activated, and taken over the parent page
  • Once the new page is activated, the old page apparently ceases to be able to run any code, or communicate with the new portal page
  • Once the portal page has served its purpose, there doesn’t seem to be a way to close it and return control to the parent, without redirecting back or using another portal.

So why not just stick to iframes?

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store