OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // http://w3c.github.io/webappsec/specs/content-security-policy/#securitypolicyv
iolationevent-interface | 5 // https://w3c.github.io/webappsec-csp/#idl-index |
6 | 6 |
7 dictionary SecurityPolicyViolationEventInit : EventInit { | 7 dictionary SecurityPolicyViolationEventInit : EventInit { |
8 // TODO(foolip): The spec says "documentURL". | 8 // TODO(foolip): The spec says "documentURL". |
9 DOMString documentURI; | 9 DOMString documentURI; |
10 DOMString referrer; | 10 DOMString referrer; |
11 // TODO(foolip): The spec says "blockedURL". | 11 // TODO(foolip): The spec says "blockedURL". |
12 DOMString blockedURI; | 12 DOMString blockedURI; |
13 DOMString violatedDirective; | 13 DOMString violatedDirective; |
14 DOMString effectiveDirective; | 14 DOMString effectiveDirective; |
15 DOMString originalPolicy; | 15 DOMString originalPolicy; |
| 16 SecurityPolicyViolationEventDisposition disposition = "enforce"; |
16 DOMString sourceFile; | 17 DOMString sourceFile; |
17 unsigned short statusCode; | 18 unsigned short statusCode; |
18 long lineNumber; | 19 long lineNumber; |
19 long columnNumber; | 20 long columnNumber; |
20 }; | 21 }; |
OLD | NEW |