Skip to content

Commit

Permalink
Make all attributes for SecurityPolicyViolationEventInit dict optional (
Browse files Browse the repository at this point in the history
#645)

The dictionary SecurityPolicyViolationEventInit is optional in the constructor of SecurityPolicyViolationEvent. This change removes the required attributes from the properties of this dictionary and adds default values to them.
  • Loading branch information
SaeidEid committed Feb 21, 2024
1 parent d0de015 commit 7839638
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1599,18 +1599,18 @@ this algorithm returns normally if compilation is allowed, and throws a
};

dictionary SecurityPolicyViolationEventInit : EventInit {
required USVString documentURI;
USVString referrer = "";
USVString blockedURI = "";
required DOMString violatedDirective;
required DOMString effectiveDirective;
required DOMString originalPolicy;
USVString sourceFile = "";
DOMString sample = "";
required SecurityPolicyViolationEventDisposition disposition;
required unsigned short statusCode;
unsigned long lineNumber = 0;
unsigned long columnNumber = 0;
USVString documentURI = "";
USVString referrer = "";
USVString blockedURI = "";
DOMString violatedDirective = "";
DOMString effectiveDirective = "";
DOMString originalPolicy = "";
USVString sourceFile = "";
DOMString sample = "";
SecurityPolicyViolationEventDisposition disposition = "enforce";
unsigned short statusCode = 0;
unsigned long lineNumber = 0;
unsigned long columnNumber = 0;
};
</pre>

Expand Down

0 comments on commit 7839638

Please sign in to comment.