Re: CSP 1.1 DOM design

2012-11-05 Thread Brendan Eich
David Bruant wrote: This M.O. is exacerbated by the reality that most of the folks writing these specs are C++ hackers, not JS developers. For many, WebIDL becomes a safety blanket that keeps them from having to ever think about the operational JS semantics or be confronted with the mismatches

Re: CSP 1.1 DOM design

2012-11-05 Thread David Bruant
Le 05/11/2012 13:57, Alex Russell a écrit : On Mon, Nov 5, 2012 at 12:14 PM, David Bruant > wrote: Le 05/11/2012 12:50, Alex Russell a écrit : On Mon, Nov 5, 2012 at 10:56 AM, David Bruant mailto:bruan...@gmail.com>> wrote: Le 05/11/2012 11:32, Alex R

Re: CSP 1.1 DOM design

2012-11-05 Thread Alex Russell
On Mon, Nov 5, 2012 at 12:14 PM, David Bruant wrote: > Le 05/11/2012 12:50, Alex Russell a écrit : > > On Mon, Nov 5, 2012 at 10:56 AM, David Bruant wrote: > >> Le 05/11/2012 11:32, Alex Russell a écrit : >> >> On Mon, Nov 5, 2012 at 1:08 AM, Boris Zbarsky wrote: >> >>> On 11/4/12 3:58 PM, A

Re: CSP 1.1 DOM design

2012-11-05 Thread David Bruant
Le 05/11/2012 12:50, Alex Russell a écrit : On Mon, Nov 5, 2012 at 10:56 AM, David Bruant > wrote: Le 05/11/2012 11:32, Alex Russell a écrit : On Mon, Nov 5, 2012 at 1:08 AM, Boris Zbarsky mailto:bzbar...@mit.edu>> wrote: On 11/4/12 3:58 PM, Alex Russ

Re: CSP 1.1 DOM design

2012-11-05 Thread Alex Russell
On Mon, Nov 5, 2012 at 10:56 AM, David Bruant wrote: > Le 05/11/2012 11:32, Alex Russell a écrit : > > On Mon, Nov 5, 2012 at 1:08 AM, Boris Zbarsky wrote: > >> On 11/4/12 3:58 PM, Alex Russell wrote: >> >>> DOMString toString(); >>> >> >> This should probably be: >> >> stringifier; >> >

Re: CSP 1.1 DOM design

2012-11-05 Thread Alex Russell
Inline. On Mon, Nov 5, 2012 at 9:27 AM, Mike West wrote: > On Sun, Nov 4, 2012 at 9:58 PM, Alex Russell wrote: > >> Looking at Section 3.4 of the CSP 1.1 draft [1], I'm noticing that the >> IDL specified feels very, very strange to use from the JS perspective. >> > > Thanks for taking a look! T

Re: CSP 1.1 DOM design

2012-11-05 Thread Anne van Kesteren
On Mon, Nov 5, 2012 at 10:27 AM, Mike West wrote: > On Sun, Nov 4, 2012 at 9:58 PM, Alex Russell wrote: >> readonly attribute DOMString[] reportURIs; > > We decided at TPAC to remove the reportURIs getter unless someone has a > really good use-case for it. If you bring it back in or have ano

Re: CSP 1.1 DOM design

2012-11-05 Thread Mike West
On Sun, Nov 4, 2012 at 9:58 PM, Alex Russell wrote: > Looking at Section 3.4 of the CSP 1.1 draft [1], I'm noticing that the IDL > specified feels very, very strange to use from the JS perspective. > Thanks for taking a look! This is great feedback. > For instance, the name "document.SecurityP

CSP 1.1 DOM design

2012-11-04 Thread Alex Russell
Hi all, Looking at Section 3.4 of the CSP 1.1 draft [1], I'm noticing that the IDL specified feels very, very strange to use from the JS perspective. For instance, the name "document.SecurityPolicy" would indicate to a mere JS hacker like me that the SecurityPolicy is a class from which instances