Re: CSP, Blob Workers, and Firefox

We've clarified this in the 1.1 spec, but I think the behavior is different between Chrome and Firefox at the moment.  Chrome uses 'self', but Firefox requires the "blob:" scheme to be listed explicitly.

The latter behavior is what is specified in the 1.1 spec, with the further refinement that "blob:" will never match a "*" policy, and must be explicitly listed.  This is because blob is really more like 'unsafe-eval' than it is like 'self'.

-Brad Hill

On Apr 19, 2014, at 6:58 AM, Paul Frazee <pfrazee@gmail.com> wrote:

> I've got an edge case that the Firefox guys see as undefined in the CSP spec.
> 
> Bug report here: https://bugzilla.mozilla.org/show_bug.cgi?id=964276
> 
> Shouldn't blob URIs take the origin that they've been created within? If so, script-src 'self' ought to allow the Worker to load.
> 
> Paul F

Received on Sunday, 20 April 2014 04:24:37 UTC