iframe usage

70 views
Skip to first unread message

Ohad Dahan

unread,
Jul 12, 2024, 8:04:27 AM (4 days ago) Jul 12
to Chromium Extensions
My understanding of https://developer.chrome.com/docs/extensions/how-to/security/sandboxing-eval is that I can use iframes as I see fit, no specific limitations since they're sandboxed.

In my specific case, I have multiple clients, extension/mobile/desktop and developing the UI for each separately is painful.
Hence I want to move all the UI to the server and all clients, including the extension will use an iframe to load their UI.

I will use MessageChannel to communicate with the iframe , to facilitate interactions with chrome API as needed.

Wanted to make sure this is ok and doesn't violate store policies. 

Stefan Van Damme

unread,
Jul 12, 2024, 5:13:19 PM (3 days ago) Jul 12
to Chromium Extensions, Ohad Dahan
Hi there,

Yes that is allowed on the Chrome Web Store. For example, I created a Chrome extension that can load website content in an iframe. With my Page Sidebar Chrome extension, I can open any website in the Chrome browser side panel. And use background -> iframe communication with a script.

Thanks,

ka...@couponfollow.com

unread,
Jul 15, 2024, 3:22:56 AM (22 hours ago) Jul 15
to Chromium Extensions, Stefan Van Damme, Ohad Dahan
Hey Ohad, I'm curious, so you're planning to have basically a SPA hosted somewhere from your infrastructure and display it in an iframe opened by your extension? So, for example, whenever your extension is meant to display a popup, it will create an iframe pointing to your server?
It sounds interesting tbh. From my experience - dealing with iframe size can be painful, but it depends on the use case ofc.

Reply all
Reply to author
Forward
0 new messages