W3C home > Mailing lists > Public > public-media-capture-logs@w3.org > December 2015

Re: [mediacapture-main] Iframe sandboxing options for gUM

From: Harald Alvestrand via GitHub <sysbot+gh@w3.org>
Date: Wed, 02 Dec 2015 15:28:16 +0000
To: public-media-capture-logs@w3.org
Message-ID: <issue_comment.created-161332275-1449070095-sysbot+gh@w3.org>
Den 02. des. 2015 16:10, skrev Dominique Hazael-Massieux:
> there are two types of sandboxing:
>   * |<iframe sandbox="allow-foo allow-bar">|
>   * |<iframe allow-foo>|
> The first one has for effect that by default, you get an iframe that
> many features cut-off, and get specific features re-enabled via the
> keywords |allow-foo| and |allow-bar| in my example. The currently
> recognized features are: |allow-forms, allow-modals, 
> allow-popups, allow-popups-to-escape-sandbox, allow-same-origin,
> allow-scripts, and allow-top-navigation|.

So if you don't have a sandbox attribute, modals (for instance) are
allowed, but if you have a sandbox attribute with an empty value, 
are disallowed?

> The second one has only been defined for fullscreen at the moment; 
> that model, fullscreen is disabled by default in any iframe, and can
> only be enabled specifically by adding that attribute.
> While I think it would be useful to think about both getUserMedia 
> WebRTC impact on the sandbox attribute, I think in this particular 
> we're really thinking about the second model, and whether to take 
> lenient backwards-compatible appraoch (which would require a
> |disallowusermedia| attribute) or to take the more stringent likely 
> bw-compatible approach, with an |allowusermedia| attribute.
> I personally think the latter is cleaner, but we would need 
> on the deployment reality to determine if that's still an option.

Seems that people who use the sandbox attribute would care about
restricting the capabilities of the iframe, so would be happy (?) to 
usermedia starting out as default off, while people who don't use it
would perhaps want the default (with no sandbox attribute) to be the
status quo - that it's allowed on.

Would that be the best of all possible worlds?

GitHub Notification of comment by alvestrand
Please view or discuss this issue at 
 using your GitHub account
Received on Wednesday, 2 December 2015 15:28:19 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:27:28 UTC