Index: third_party/WebKit/LayoutTests/http/tests/security/resources/cross-frame-mouse-source-capabilities.html |
diff --git a/third_party/WebKit/LayoutTests/http/tests/security/resources/cross-frame-mouse-source-capabilities.html b/third_party/WebKit/LayoutTests/http/tests/security/resources/cross-frame-mouse-source-capabilities.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..c75122bb4602f31b45afab9753fa9558f7d85fd8 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/http/tests/security/resources/cross-frame-mouse-source-capabilities.html |
@@ -0,0 +1,16 @@ |
+<!doctype html> |
+<script> |
+function handler(event) { |
+ window.top.postMessage(event.sourceCapabilities.customProperty, "*"); |
+} |
+ |
+function runTest() { |
+ document.querySelector("button").click(); |
+} |
+ |
+window.onload = function () { |
+ setTimeout(runTest, 1000); |
+ window.top.postMessage("start", "*"); |
+} |
+</script> |
+<button onclick="handler(event)"></button> |