Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(386)

Unified Diff: core/events/SecurityPolicyViolationEvent.idl

Issue 1660113002: Updated to Chrome 45 (2454) moved from SVN to git. Base URL: https://github.com/dart-lang/webcore.git@roll_45
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « core/events/RelatedEventInit.idl ('k') | core/events/SecurityPolicyViolationEventInit.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/events/SecurityPolicyViolationEvent.idl
diff --git a/core/events/SecurityPolicyViolationEvent.idl b/core/events/SecurityPolicyViolationEvent.idl
index 5ac10f27e0173d9a89717fb8c6c75b67362e8834..f3984a53cfa267e5d1c2f9832d71e9c652fad73b 100644
--- a/core/events/SecurityPolicyViolationEvent.idl
+++ b/core/events/SecurityPolicyViolationEvent.idl
@@ -22,18 +22,22 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+// http://w3c.github.io/webappsec/specs/content-security-policy/#securitypolicyviolationevent-interface
+
[
- EventConstructor,
- RuntimeEnabled=ExperimentalContentSecurityPolicyFeatures,
+ Constructor(DOMString type, optional SecurityPolicyViolationEventInit eventInitDict),
] interface SecurityPolicyViolationEvent : Event {
- [InitializedByEventConstructor] readonly attribute DOMString documentURI;
- [InitializedByEventConstructor] readonly attribute DOMString referrer;
- [InitializedByEventConstructor] readonly attribute DOMString blockedURI;
- [InitializedByEventConstructor] readonly attribute DOMString violatedDirective;
- [InitializedByEventConstructor] readonly attribute DOMString effectiveDirective;
- [InitializedByEventConstructor] readonly attribute DOMString originalPolicy;
- [InitializedByEventConstructor] readonly attribute DOMString sourceFile;
- [InitializedByEventConstructor] readonly attribute long lineNumber;
- [InitializedByEventConstructor] readonly attribute long columnNumber;
- [InitializedByEventConstructor] readonly attribute long statusCode;
+ // TODO(philipj): The spec says "documentURL".
+ [Measure] readonly attribute DOMString documentURI;
+ readonly attribute DOMString referrer;
+ // TODO(philipj): The spec says "blockedURL".
+ [Measure] readonly attribute DOMString blockedURI;
+ readonly attribute DOMString violatedDirective;
+ readonly attribute DOMString effectiveDirective;
+ readonly attribute DOMString originalPolicy;
+ readonly attribute DOMString sourceFile;
+ // FIXME: The spec says "statusCode" is a DOMString.
+ [Measure] readonly attribute long statusCode;
+ readonly attribute long lineNumber;
+ readonly attribute long columnNumber;
};
« no previous file with comments | « core/events/RelatedEventInit.idl ('k') | core/events/SecurityPolicyViolationEventInit.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698