| Index: third_party/WebKit/LayoutTests/presentation/resources/iframe-sandbox.html
|
| diff --git a/third_party/WebKit/LayoutTests/presentation/resources/iframe-sandbox.html b/third_party/WebKit/LayoutTests/presentation/resources/iframe-sandbox.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..a3a05b9b443acb12c7ba369a20b4aaabec67eba4
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/presentation/resources/iframe-sandbox.html
|
| @@ -0,0 +1,21 @@
|
| +<!DOCTYPE html>
|
| +<html>
|
| +<body>
|
| +<script>
|
| +
|
| +window.onmessage = function (ev) {
|
| + var request = null;
|
| + if (ev.data === 'create') {
|
| + try {
|
| + request = new PresentationRequest("https://example.com/");
|
| + parent.window.postMessage('success', '*');
|
| + }
|
| + catch (err) {
|
| + parent.window.postMessage(err.name, '*');
|
| + }
|
| + }
|
| +}
|
| +
|
| +</script>
|
| +</body>
|
| +</html>
|
|
|