Re: [ServiceWorker] Should an IFRAME without src be controlled by SW when its parent is controlled? (#612)

Creating an iframe with `about:blank` is a commonly done when creating widgets that need script and style isolation from the host page. 

Since the widget needs to run in an wide variety of pages with various CSS styles and scripts. The script created iframe is a perfect solution for isolation. Rendering a widget UI within the iframe reduces the complexity involved in developing and maintaining thirdparty JS widgets. 

Since the iframe is on the same domain as the host page it can access the parent window's context and DOM. As a ServiceWorker implementor it feels like the worker would have the same visibility to assets being loaded in the frame as it does the host page. 

My use case allows users to add a service worker to their page by dropping in a script. It then has a slide out drawer UI which enables navigation between applications when the user is offline. I have a proof of concept implementation at [duskjs.com](http://www.duskjs.com).

---
Reply to this email directly or view it on GitHub:
https://github.com/slightlyoff/ServiceWorker/issues/612#issuecomment-72191053

Received on Friday, 30 January 2015 12:01:21 UTC