Index: third_party/WebKit/LayoutTests/external/wpt/content-security-policy/blink-contrib/resources/worker-function-function.js |
diff --git a/third_party/WebKit/LayoutTests/external/wpt/content-security-policy/blink-contrib/resources/worker-function-function.js b/third_party/WebKit/LayoutTests/external/wpt/content-security-policy/blink-contrib/resources/worker-function-function.js |
new file mode 100644 |
index 0000000000000000000000000000000000000000..03d9bf4cbbcad9baacf75d343457f0954125d84e |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/external/wpt/content-security-policy/blink-contrib/resources/worker-function-function.js |
@@ -0,0 +1,7 @@ |
+var fn = function() { |
+ postMessage('Function() function blocked'); |
+} |
+try { |
+ fn = new Function("", "postMessage('Function() function allowed');"); |
+} catch (e) {} |
+fn(); |