Skip to content

Commit 7839638

Browse files
authored
Make all attributes for SecurityPolicyViolationEventInit dict optional (#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.
1 parent d0de015 commit 7839638

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

index.bs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1599,18 +1599,18 @@ this algorithm returns normally if compilation is allowed, and throws a
15991599
};
16001600

16011601
dictionary SecurityPolicyViolationEventInit : EventInit {
1602-
required USVString documentURI;
1603-
USVString referrer = "";
1604-
USVString blockedURI = "";
1605-
required DOMString violatedDirective;
1606-
required DOMString effectiveDirective;
1607-
required DOMString originalPolicy;
1608-
USVString sourceFile = "";
1609-
DOMString sample = "";
1610-
required SecurityPolicyViolationEventDisposition disposition;
1611-
required unsigned short statusCode;
1612-
unsigned long lineNumber = 0;
1613-
unsigned long columnNumber = 0;
1602+
USVString documentURI = "";
1603+
USVString referrer = "";
1604+
USVString blockedURI = "";
1605+
DOMString violatedDirective = "";
1606+
DOMString effectiveDirective = "";
1607+
DOMString originalPolicy = "";
1608+
USVString sourceFile = "";
1609+
DOMString sample = "";
1610+
SecurityPolicyViolationEventDisposition disposition = "enforce";
1611+
unsigned short statusCode = 0;
1612+
unsigned long lineNumber = 0;
1613+
unsigned long columnNumber = 0;
16141614
};
16151615
</pre>
16161616

0 commit comments

Comments
 (0)