Index: third_party/WebKit/LayoutTests/security/immutable-prototype-sharedworker.html |
diff --git a/third_party/WebKit/LayoutTests/security/immutable-prototype-sharedworker.html b/third_party/WebKit/LayoutTests/security/immutable-prototype-sharedworker.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..24ab9fd4966b2ad94d1abb493ddd8b16fda6fed5 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/security/immutable-prototype-sharedworker.html |
@@ -0,0 +1,18 @@ |
+<!DOCTYPE html> |
+<html> |
+<script src="../resources/testharness.js"></script> |
+<script src="../resources/testharnessreport.js"></script> |
+<script> |
+'use strict'; |
+ |
+let expected = ['immutable', 'immutable', 'immutable', 'immutable', 'immutable']; |
+ |
+async_test(function(t) { |
+ let worker = new SharedWorker('immutable-prototype-worker.js'); |
+ worker.port.onmessage = t.step_func_done(function(result) { |
+ assert_array_equals(expected, result.data); |
+ }); |
+ worker.port.postMessage(null); |
+}, 'worker prototype chain should be immutable'); |
+</script> |
+</html> |