Re: [whatwg] Iframe Sandbox Attribute - allow-plugins?

2011-07-15 Thread Julian Reschke

On 2011-07-14 17:01, Jonas Sicking wrote:

...
True. I would be fine with removing the plugin requirement. Or
changing it such that it states that plugins can only be loaded if
it's done in a manner that ensures that all other requirements are
still fulfilled. Or just dealing with this once there actually are
plugins and plugin APIs which could be loaded while still fulfilling
the other requirements.
...


Well, the spec is in W3C LC. So if we think this requirement needs to be 
rephrased then it should be brought up as a problem.


Best regards, Julian


Re: [whatwg] Iframe Sandbox Attribute - allow-plugins?

2011-07-14 Thread Jonas Sicking
On Wed, Jul 13, 2011 at 9:49 PM, Anne van Kesteren ann...@opera.com wrote:

 On Wed, 13 Jul 2011 23:13:05 +0200, Julian Reschke julian.resc...@gmx.de 
 wrote:

 Yes, but we can *define* the flag in HTML and write down what it means with 
 respect to plugin APIs.

 It seems much better to wait until it can actually be implemented.

Especially since it's not at all clear to me that a specific opt-in
mechanism is at all needed once we have the appropriate plugin APIs
implemented. And those APIs are needed anyway if we want to allow
plugins in any form in the sandbox.

/ Jonas


Re: [whatwg] Iframe Sandbox Attribute - allow-plugins?

2011-07-14 Thread Julian Reschke

On 2011-07-14 08:22, Jonas Sicking wrote:

On Wed, Jul 13, 2011 at 9:49 PM, Anne van Kesterenann...@opera.com  wrote:


On Wed, 13 Jul 2011 23:13:05 +0200, Julian Reschkejulian.resc...@gmx.de  
wrote:


Yes, but we can *define* the flag in HTML and write down what it means with 
respect to plugin APIs.


It seems much better to wait until it can actually be implemented.


Especially since it's not at all clear to me that a specific opt-in
mechanism is at all needed once we have the appropriate plugin APIs
implemented. And those APIs are needed anyway if we want to allow
plugins in any form in the sandbox.


When the attribute is set, the content is treated as being from a 
unique origin, forms and scripts are disabled, links are prevented from 
targeting other browsing contexts, and plugins are disabled.


A browser negotiating something with plugins using that API and enabling 
them despite @sandbox would violate the above requirement, no?


Re: [whatwg] Iframe Sandbox Attribute - allow-plugins?

2011-07-14 Thread Jonas Sicking
On Thu, Jul 14, 2011 at 1:16 AM, Julian Reschke julian.resc...@gmx.de wrote:
 On 2011-07-14 08:22, Jonas Sicking wrote:

 On Wed, Jul 13, 2011 at 9:49 PM, Anne van Kesterenann...@opera.com
  wrote:

 On Wed, 13 Jul 2011 23:13:05 +0200, Julian Reschkejulian.resc...@gmx.de
  wrote:

 Yes, but we can *define* the flag in HTML and write down what it means
 with respect to plugin APIs.

 It seems much better to wait until it can actually be implemented.

 Especially since it's not at all clear to me that a specific opt-in
 mechanism is at all needed once we have the appropriate plugin APIs
 implemented. And those APIs are needed anyway if we want to allow
 plugins in any form in the sandbox.

 When the attribute is set, the content is treated as being from a unique
 origin, forms and scripts are disabled, links are prevented from targeting
 other browsing contexts, and plugins are disabled.

 A browser negotiating something with plugins using that API and enabling
 them despite @sandbox would violate the above requirement, no?

True. I would be fine with removing the plugin requirement. Or
changing it such that it states that plugins can only be loaded if
it's done in a manner that ensures that all other requirements are
still fulfilled. Or just dealing with this once there actually are
plugins and plugin APIs which could be loaded while still fulfilling
the other requirements.

/ Jonas


[whatwg] Iframe Sandbox Attribute - allow-plugins?

2011-07-13 Thread John Richards
http://www.whatwg.org/specs/web-apps/current-work/multipage/the-iframe-element.html#attr-iframe-sandbox

Are there plans to have an 'allow-plugins' value?

I'm assuming there will be use-cases where the only protection that is
desired is prevention of parent redirection.

Thanks


Re: [whatwg] Iframe Sandbox Attribute - allow-plugins?

2011-07-13 Thread Adam Barth
Adding allow-plugins today would defeat the prevention of parent redirection.

The short answer is we need an API for informing plugins of the
sandbox flags and a way of confirming that the plugins understand
those bits before we can allow plugins inside sandboxed frames.

Adam


On Wed, Jul 13, 2011 at 12:53 PM, John Richards
johnmrricha...@gmail.com wrote:
 http://www.whatwg.org/specs/web-apps/current-work/multipage/the-iframe-element.html#attr-iframe-sandbox

 Are there plans to have an 'allow-plugins' value?

 I'm assuming there will be use-cases where the only protection that is
 desired is prevention of parent redirection.

 Thanks



Re: [whatwg] Iframe Sandbox Attribute - allow-plugins?

2011-07-13 Thread Julian Reschke

On 2011-07-13 22:31, Adam Barth wrote:

Adding allow-plugins today would defeat the prevention of parent redirection.

The short answer is we need an API for informing plugins of the
sandbox flags and a way of confirming that the plugins understand
those bits before we can allow plugins inside sandboxed frames.


...but that API is outside the scope of what the W3C and the WhatWG 
currently do, so I think it would be great if defining this flag could 
be decoupled from progress on the plugin API layers.


Best regards, Julian


Re: [whatwg] Iframe Sandbox Attribute - allow-plugins?

2011-07-13 Thread Adam Barth
On Wed, Jul 13, 2011 at 1:55 PM, Julian Reschke julian.resc...@gmx.de wrote:
 On 2011-07-13 22:31, Adam Barth wrote:
 Adding allow-plugins today would defeat the prevention of parent
 redirection.

 The short answer is we need an API for informing plugins of the
 sandbox flags and a way of confirming that the plugins understand
 those bits before we can allow plugins inside sandboxed frames.

 ...but that API is outside the scope of what the W3C and the WhatWG
 currently do, so I think it would be great if defining this flag could be
 decoupled from progress on the plugin API layers.

It is coupled in the sense that we can't implement the flag unless and
until such a plug-in API exists.

Adam


Re: [whatwg] Iframe Sandbox Attribute - allow-plugins?

2011-07-13 Thread Julian Reschke

On 2011-07-13 22:58, Adam Barth wrote:

On Wed, Jul 13, 2011 at 1:55 PM, Julian Reschkejulian.resc...@gmx.de  wrote:

On 2011-07-13 22:31, Adam Barth wrote:

Adding allow-plugins today would defeat the prevention of parent
redirection.

The short answer is we need an API for informing plugins of the
sandbox flags and a way of confirming that the plugins understand
those bits before we can allow plugins inside sandboxed frames.


...but that API is outside the scope of what the W3C and the WhatWG
currently do, so I think it would be great if defining this flag could be
decoupled from progress on the plugin API layers.


It is coupled in the sense that we can't implement the flag unless and
until such a plug-in API exists.


Yes, but we can *define* the flag in HTML and write down what it means 
with respect to plugin APIs.


Best regards, Julian


Re: [whatwg] Iframe Sandbox Attribute - allow-plugins?

2011-07-13 Thread Anne van Kesteren
On Wed, 13 Jul 2011 23:13:05 +0200, Julian Reschke julian.resc...@gmx.de  
wrote:
Yes, but we can *define* the flag in HTML and write down what it means  
with respect to plugin APIs.


It seems much better to wait until it can actually be implemented.


--
Anne van Kesteren
http://annevankesteren.nl/