Newsgroups: mozilla.dev.security
From: Gervase Markham <g...@mozilla.org>
Date: Wed, 08 Apr 2009 20:07:40 +0100
Local: Wed, Apr 8 2009 3:07 pm
Subject: Re: Content Security Policy - final call for comments
On 07/04/09 18:02, Brandon Sterne wrote:
> 1. Bugs may be present in the CSP design which require future There are two sorts of possible breakage - syntax and functional. I > compatibility breakage. These obviously cannot be foreseen and, though > we desire it, we can't guarantee forward compatibility. can't see us needing to throw away the syntax and, if we did, we'd just define a new header. So no issues there. And functional breakage comes into your second category anyway. > 2. New types of content (per your example) or new web APIs may be added But the old browsers also won't support the new APIs/whatever. If we add > in the future which don't shoehorn nicely into one of our current policy > buckets. If we have to add another policy directive in the future, then > it will violate the policy syntax in older versions which will cause > them to fail closed (according to the current design). a <3dcanvas> element to Firefox and control it with 3dcanvas-src, then old browsers won't understand the element, and so ignore it. And so if the browser didn't understand 3dcanvas-src either, that's no big deal. CSP should specify that unknown directives are ignored. That's a fairly The only problem would be if an existing browser feature acquires > 3. We arguably want to have a pref for users to turn off CSP (for Why is that useful information? > testing or otherwise). It would be useful to have the version number > available as a means to communicate to the site that, even though the > client supports CSP by default, CSP has been disabled on this client. I'm actually against making it easy for servers to "detect" if CSP is > I looked at each of the HTTP Header Field Definitions and my preference I'd much rather have a "\d+;" at the start of the header. Missing > for communicating the CSP version is to add a product token [1] to the > User-Agent [2] string. This would add only a few bytes to the U-A and > it saves us the trouble of having to go through IETF processes of > creating a new request header. implies version 1. Gerv You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||