Skip to content

Commit

Permalink
Bug 1712690 - Update the SecurityPolicyViolationEvent WebIDL. r=webid…
Browse files Browse the repository at this point in the history
…l,dom-core,peterv

Implements the changes from w3c/webappsec-csp#645

(This still does not include changing DOMString to USVString)

Differential Revision: https://phabricator.services.mozilla.com/D202918
  • Loading branch information
Tom Schuster committed Mar 1, 2024
1 parent 30cde81 commit a45b629
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
18 changes: 11 additions & 7 deletions dom/webidl/SecurityPolicyViolationEvent.webidl
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/. */
* You can obtain one at http://mozilla.org/MPL/2.0/.
*
* The origin of this IDL file is
* https://w3c.github.io/webappsec-csp/#violation-events
*/

enum SecurityPolicyViolationEventDisposition
{
Expand All @@ -16,15 +20,15 @@ interface SecurityPolicyViolationEvent : Event
readonly attribute DOMString documentURI;
readonly attribute DOMString referrer;
readonly attribute DOMString blockedURI;
readonly attribute DOMString violatedDirective;
readonly attribute DOMString violatedDirective; // historical alias of effectiveDirective
readonly attribute DOMString effectiveDirective;
readonly attribute DOMString originalPolicy;
readonly attribute DOMString sourceFile;
readonly attribute DOMString sample;
readonly attribute SecurityPolicyViolationEventDisposition disposition;
readonly attribute unsigned short statusCode;
readonly attribute long lineNumber;
readonly attribute long columnNumber;
readonly attribute unsigned long lineNumber;
readonly attribute unsigned long columnNumber;
};

[GenerateInitFromJSON, GenerateToJSON]
Expand All @@ -38,8 +42,8 @@ dictionary SecurityPolicyViolationEventInit : EventInit
DOMString originalPolicy = "";
DOMString sourceFile = "";
DOMString sample = "";
SecurityPolicyViolationEventDisposition disposition = "report";
SecurityPolicyViolationEventDisposition disposition = "enforce";
unsigned short statusCode = 0;
long lineNumber = 0;
long columnNumber = 0;
unsigned long lineNumber = 0;
unsigned long columnNumber = 0;
};

This file was deleted.

0 comments on commit a45b629

Please sign in to comment.