| Index: LayoutTests/http/tests/pointer-lock/iframe-sandboxed-allow-pointer-lock-prefixed.html
|
| diff --git a/LayoutTests/http/tests/pointer-lock/iframe-sandboxed-allow-pointer-lock-prefixed.html b/LayoutTests/http/tests/pointer-lock/iframe-sandboxed-allow-pointer-lock-prefixed.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..6c062e70828176617282cc9f319acad2abfd2641
|
| --- /dev/null
|
| +++ b/LayoutTests/http/tests/pointer-lock/iframe-sandboxed-allow-pointer-lock-prefixed.html
|
| @@ -0,0 +1,33 @@
|
| +<!DOCTYPE HTML>
|
| +<html>
|
| +<head>
|
| +<script src="/js-test-resources/js-test.js"></script>
|
| +<script src="../resources/pointer-lock/pointer-lock-test-harness-prefixed.js"></script>
|
| +</head>
|
| +<body>
|
| +<div>
|
| + <div id="target1"></div>
|
| + <iframe src="../resources/pointer-lock/inner-iframe-prefixed.html" sandbox="allow-pointer-lock allow-scripts" onload="doNextStepWithUserGesture()"></iframe>
|
| +</div>
|
| +<script>
|
| + description("Test sandboxed iframe with allow-pointer-lock allows pointer lock.");
|
| + window.jsTestIsAsync = true;
|
| +
|
| + targetDiv1 = document.getElementById("target1");
|
| + iframe = document.getElementsByTagName("iframe")[0];
|
| +
|
| + todo = [
|
| + function () {
|
| + iframe.contentWindow.postMessage(["eval", 'document.body.webkitRequestPointerLock()'], "*");
|
| + window.onmessage = function (messageEvent) {
|
| + message = messageEvent.data;
|
| + shouldBeEqualToString("message", "inner-iframe-prefixed.html onwebkitpointerlockchange, document.webkitPointerLockElement = [object HTMLBodyElement]");
|
| + window.onmessage = null;
|
| + doNextStep();
|
| + }
|
| + },
|
| + ];
|
| + // doNextStep() called by iframe onload handler.
|
| +</script>
|
| +</body>
|
| +</html>
|
|
|