Iframe sandbox
compatibility with Service Workers
#10585
Labels
addition/proposal
New features or enhancements
needs implementer interest
Moving the issue forward requires implementers to express interest
What problem are you trying to solve?
See w3c/ServiceWorker#1727
The concept of sandboxed iframes is fundamentally incompatible by design with Service Workers.
What solutions exist today?
None
How would you solve it?
The proposal attempts to bridge the incompatibility by adding an
inherit-controller
value for thesandbox
attribute. This value will allow the parent context to transparently control the sandboxed iframe in these specific ways:clients
interface within the service workerNote that this control is transparent, which implies that
navigator.serviceWorker
will still not be available from the iframeAnything else?
This proposal does not imply a security risk as a sandboxed iframe of any origin will not share credentials with that origin unless it has the
allow-same-origin
value. As such,inherit-controller
andallow-same-origin
cannot be used together (allow-same-origin
should take precedence).The text was updated successfully, but these errors were encountered: