diff options
Diffstat (limited to 'dom/security/test/csp/file_child-src_shared_worker.js')
-rw-r--r-- | dom/security/test/csp/file_child-src_shared_worker.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/dom/security/test/csp/file_child-src_shared_worker.js b/dom/security/test/csp/file_child-src_shared_worker.js new file mode 100644 index 000000000..0fca1394c --- /dev/null +++ b/dom/security/test/csp/file_child-src_shared_worker.js @@ -0,0 +1,8 @@ +onconnect = function(e) { + var port = e.ports[0]; + port.addEventListener('message', function(e) { + port.postMessage('success'); + }); + + port.start(); +} |