Index: LayoutTests/http/tests/serviceworker/chromium/resources/sandboxed-iframe-navigator-serviceworker-iframe.html |
diff --git a/LayoutTests/http/tests/serviceworker/chromium/resources/sandboxed-iframe-navigator-serviceworker-iframe.html b/LayoutTests/http/tests/serviceworker/chromium/resources/sandboxed-iframe-navigator-serviceworker-iframe.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..114dc4b8c383048d112b3f1ff0eb41c6c43ddd1f |
--- /dev/null |
+++ b/LayoutTests/http/tests/serviceworker/chromium/resources/sandboxed-iframe-navigator-serviceworker-iframe.html |
@@ -0,0 +1,12 @@ |
+<script> |
+window.onmessage = function (e) { |
+ var id = e.data['id']; |
+ try { |
+ var sw = window.navigator.serviceWorker; |
+ } catch (e) { |
+ window.top.postMessage({id: id, result:e.toString()}, '*'); |
+ return; |
+ } |
+ window.top.postMessage({id: id, result:'ok'}, '*'); |
+}; |
+</script> |