Closed
Bug 558429
Opened 16 years ago
Closed 16 years ago
CSP policy-uri should accept relative URIs
Categories
(Core :: DOM: Core & HTML, enhancement)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
People
(Reporter: geekboy, Assigned: geekboy)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
|
5.77 KB,
patch
|
bsterne
:
review+
dveditz
:
review+
jst
:
approval2.0+
|
Details | Diff | Splinter Review |
We should allow the use of relative URIs in policy-uri, since there are so many restrictions on it anyway, policies could be shortened by just specifying a path. For example, on a page at https://mysite.com/foo:
X-Content-Security-Policy: policy-uri /lockdown.csp
Would cause the policy to be loaded from https://mysite.com/lockdown.csp
| Assignee | ||
Comment 1•16 years ago
|
||
Lifted URI-ification of selfUri out of the specific policy-uri parsing bit of the loop, and set selfUri as the base URI when parsing the policy uri.
Attachment #450247 -
Flags: review?(bsterne)
Comment 2•16 years ago
|
||
Comment on attachment 450247 [details] [diff] [review]
Proposed Patch
r=bsterne
Attachment #450247 -
Flags: review?(dveditz)
Attachment #450247 -
Flags: review?(bsterne)
Attachment #450247 -
Flags: review+
Attachment #450247 -
Flags: approval2.0?
Comment 3•16 years ago
|
||
Comment on attachment 450247 [details] [diff] [review]
Proposed Patch
Please do not request approval until reviews are complete.
Attachment #450247 -
Flags: approval2.0?
Comment 4•16 years ago
|
||
Comment on attachment 450247 [details] [diff] [review]
Proposed Patch
r=dveditz
Attachment #450247 -
Flags: review?(dveditz) → review+
Updated•16 years ago
|
Attachment #450247 -
Flags: approval2.0?
Updated•16 years ago
|
Attachment #450247 -
Flags: approval2.0? → approval2.0+
Comment 5•16 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Updated•7 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•