Re: [MIX] Modifications to script APIs

On Thu, Oct 30, 2014 at 3:05 PM, Mike West <mkwst@google.com> wrote:
> You did. I'm still not sure I agree with you. :)
>
> If we know in `open()` that we're not going to load the resource (because
> the URL is a priori insecure), why not throw?
>
> If we decide not to throw, we'll need to change CSP as well; I believe we do
> the same thing.

Because a) it's easier to completely break existing scripts that way.
They can probably deal with a network error, but not by having open()
throw. And b) because failing in send() is what allows things like
CORS to exist.


-- 
https://annevankesteren.nl/

Received on Thursday, 30 October 2014 14:14:35 UTC