Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(82)

Unified Diff: third_party/WebKit/LayoutTests/http/tests/security/resources/cross-frame-mouse-source-capabilities.html

Issue 2675793005: Track constant InputDeviceCapabilities objects per-window. (Closed)
Patch Set: test tidying Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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>

Powered by Google App Engine
This is Rietveld 408576698