Skip to content

Commit 856eda1

Browse files
committed
missing getter for unsafeWasm added
1 parent 495a39f commit 856eda1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/main/java/org/htmlunit/csp/directive/SourceExpressionDirective.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ public class SourceExpressionDirective extends HostSourceDirective {
3838
* Unsafe WebAssembly execution</a>
3939
*/
4040
private static final String WASM_UNSAFE_EVAL = "'wasm-unsafe-eval'";
41+
4142
private boolean unsafeInline_;
4243
private boolean unsafeEval_;
4344
private boolean strictDynamic_;
@@ -231,6 +232,10 @@ public boolean unsafeAllowRedirects() {
231232
return unsafeAllowRedirects_;
232233
}
233234

235+
public boolean unsafeWasm() {
236+
return unsafeWasm_;
237+
}
238+
234239
public List<Nonce> getNonces() {
235240
return Collections.unmodifiableList(nonces_);
236241
}

0 commit comments

Comments
 (0)