-
Notifications
You must be signed in to change notification settings - Fork 0
/
SecurityPolicyViolationEvent.cljs
322 lines (222 loc) · 10.5 KB
/
SecurityPolicyViolationEvent.cljs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
(ns web.security.SecurityPolicyViolationEvent
"The SecurityPolicyViolationEvent interface inherits from `web.event.Event`,
represents the event object of an event sent on a document or
when its content security policy is violated."
(:refer-clojure :exclude []))
(def constructor
"Constructor.
The SecurityPolicyViolationEvent constructor creates a new SecurityPolicyViolationEvent object instance.
See also: `https://developer.mozilla.org/en-US/docs/Web/API/SecurityPolicyViolationEvent/SecurityPolicyViolationEvent`"
js/SecurityPolicyViolationEvent)
(defn blocked-uri
"Property.
The blockedURI read-only property of the `web.security.SecurityPolicyViolationEvent`
is a `web.USVString` representing the URI of the resource that
blocked because it violates a policy.
`let blockedURI = violationEventInstance.blockedURI;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/SecurityPolicyViolationEvent/blockedURI`"
[this]
(-> this (.-blockedURI)))
(defn set-blocked-uri!
"Property.
The blockedURI read-only property of the `web.security.SecurityPolicyViolationEvent`
is a `web.USVString` representing the URI of the resource that
blocked because it violates a policy.
`let blockedURI = violationEventInstance.blockedURI;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/SecurityPolicyViolationEvent/blockedURI`"
[this val]
(aset this "blockedURI" val))
(defn column-number
"Property.
The columnNumber read-only property of the `web.security.SecurityPolicyViolationEvent`
is the column number in the document or worker at which the violation
`let colNum = violationEventInstance.columnNumber;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/SecurityPolicyViolationEvent/columnNumber`"
[this]
(-> this (.-columnNumber)))
(defn set-column-number!
"Property.
The columnNumber read-only property of the `web.security.SecurityPolicyViolationEvent`
is the column number in the document or worker at which the violation
`let colNum = violationEventInstance.columnNumber;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/SecurityPolicyViolationEvent/columnNumber`"
[this val]
(aset this "columnNumber" val))
(defn disposition
"Property.
The disposition read-only property of the `web.security.SecurityPolicyViolationEvent`
indicates how the violated policy is configured to be treated
the user agent.
`let disposition = violationEventInstance.disposition;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/SecurityPolicyViolationEvent/disposition`"
[this]
(-> this (.-disposition)))
(defn set-disposition!
"Property.
The disposition read-only property of the `web.security.SecurityPolicyViolationEvent`
indicates how the violated policy is configured to be treated
the user agent.
`let disposition = violationEventInstance.disposition;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/SecurityPolicyViolationEvent/disposition`"
[this val]
(aset this "disposition" val))
(defn document-uri
"Property.
The documentURI read-only property of the `web.security.SecurityPolicyViolationEvent`
is a `web.USVString` representing the URI of the document or
in which the violation was found.
`let documentURI = violationEventInstance.documentURI;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/SecurityPolicyViolationEvent/documentURI`"
[this]
(-> this (.-documentURI)))
(defn set-document-uri!
"Property.
The documentURI read-only property of the `web.security.SecurityPolicyViolationEvent`
is a `web.USVString` representing the URI of the document or
in which the violation was found.
`let documentURI = violationEventInstance.documentURI;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/SecurityPolicyViolationEvent/documentURI`"
[this val]
(aset this "documentURI" val))
(defn effective-directive
"Property.
The effectiveDirective read-only property of the `web.security.SecurityPolicyViolationEvent`
is a `web.dom.DOMString` representing the directive whose enforcement
the violation.
`let effDir = violationEventInstance.effectiveDirective;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/SecurityPolicyViolationEvent/effectiveDirective`"
[this]
(-> this (.-effectiveDirective)))
(defn set-effective-directive!
"Property.
The effectiveDirective read-only property of the `web.security.SecurityPolicyViolationEvent`
is a `web.dom.DOMString` representing the directive whose enforcement
the violation.
`let effDir = violationEventInstance.effectiveDirective;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/SecurityPolicyViolationEvent/effectiveDirective`"
[this val]
(aset this "effectiveDirective" val))
(defn line-number
"Property.
The lineNumber read-only property of the `web.security.SecurityPolicyViolationEvent`
is the line number in the document or worker at which the violation
`let lineNumber = violationEventInstance.lineNumber;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/SecurityPolicyViolationEvent/lineNumber`"
[this]
(-> this (.-lineNumber)))
(defn set-line-number!
"Property.
The lineNumber read-only property of the `web.security.SecurityPolicyViolationEvent`
is the line number in the document or worker at which the violation
`let lineNumber = violationEventInstance.lineNumber;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/SecurityPolicyViolationEvent/lineNumber`"
[this val]
(aset this "lineNumber" val))
(defn original-policy
"Property.
The originalPolicy read-only property of the `web.security.SecurityPolicyViolationEvent`
is a `web.dom.DOMString` containing the policy whose enforcement
the violation.
`let origPolicy = violationEventInstance.originalPolicy;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/SecurityPolicyViolationEvent/originalPolicy`"
[this]
(-> this (.-originalPolicy)))
(defn set-original-policy!
"Property.
The originalPolicy read-only property of the `web.security.SecurityPolicyViolationEvent`
is a `web.dom.DOMString` containing the policy whose enforcement
the violation.
`let origPolicy = violationEventInstance.originalPolicy;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/SecurityPolicyViolationEvent/originalPolicy`"
[this val]
(aset this "originalPolicy" val))
(defn referrer
"Property.
The referrer read-only property of the `web.security.SecurityPolicyViolationEvent`
is a `web.USVString` representing the referrer of the resources
policy was violated. This will be a URL or null.
`let referrer = violationEventInstance.referrer;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/SecurityPolicyViolationEvent/referrer`"
[this]
(-> this (.-referrer)))
(defn set-referrer!
"Property.
The referrer read-only property of the `web.security.SecurityPolicyViolationEvent`
is a `web.USVString` representing the referrer of the resources
policy was violated. This will be a URL or null.
`let referrer = violationEventInstance.referrer;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/SecurityPolicyViolationEvent/referrer`"
[this val]
(aset this "referrer" val))
(defn sample
"Property.
The sample read-only property of the `web.security.SecurityPolicyViolationEvent`
is a `web.dom.DOMString` representing a sample of the resource
caused the violation.
`let sample = violationEventInstance.sample;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/SecurityPolicyViolationEvent/sample`"
[this]
(-> this (.-sample)))
(defn set-sample!
"Property.
The sample read-only property of the `web.security.SecurityPolicyViolationEvent`
is a `web.dom.DOMString` representing a sample of the resource
caused the violation.
`let sample = violationEventInstance.sample;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/SecurityPolicyViolationEvent/sample`"
[this val]
(aset this "sample" val))
(defn source-file
"Property.
The sourceFile read-only property of the `web.security.SecurityPolicyViolationEvent`
is a `web.USVString` representing the URI of the document or
in which the violation was found.
`let source = violationEventInstance.sourceFile;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/SecurityPolicyViolationEvent/sourceFile`"
[this]
(-> this (.-sourceFile)))
(defn set-source-file!
"Property.
The sourceFile read-only property of the `web.security.SecurityPolicyViolationEvent`
is a `web.USVString` representing the URI of the document or
in which the violation was found.
`let source = violationEventInstance.sourceFile;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/SecurityPolicyViolationEvent/sourceFile`"
[this val]
(aset this "sourceFile" val))
(defn status-code
"Property.
The statusCode read-only property of the `web.security.SecurityPolicyViolationEvent`
is a number representing the HTTP status code of the document
worker in which the violation occurred.
`let status = violationEventInstance.statusCode;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/SecurityPolicyViolationEvent/statusCode`"
[this]
(-> this (.-statusCode)))
(defn set-status-code!
"Property.
The statusCode read-only property of the `web.security.SecurityPolicyViolationEvent`
is a number representing the HTTP status code of the document
worker in which the violation occurred.
`let status = violationEventInstance.statusCode;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/SecurityPolicyViolationEvent/statusCode`"
[this val]
(aset this "statusCode" val))
(defn violated-directive
"Property.
The violatedDirective read-only property of the `web.security.SecurityPolicyViolationEvent`
is a `web.dom.DOMString` representing the directive whose enforcement
the violation.
`let violatedDir = violationEventInstance.violatedDirective;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/SecurityPolicyViolationEvent/violatedDirective`"
[this]
(-> this (.-violatedDirective)))
(defn set-violated-directive!
"Property.
The violatedDirective read-only property of the `web.security.SecurityPolicyViolationEvent`
is a `web.dom.DOMString` representing the directive whose enforcement
the violation.
`let violatedDir = violationEventInstance.violatedDirective;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/SecurityPolicyViolationEvent/violatedDirective`"
[this val]
(aset this "violatedDirective" val))