Index: third_party/WebKit/LayoutTests/vibration/resources/vibrate-from-iframe.html |
diff --git a/third_party/WebKit/LayoutTests/vibration/resources/vibrate-from-iframe.html b/third_party/WebKit/LayoutTests/vibration/resources/vibrate-from-iframe.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..419270ff7a896f4762ea593a4c7ac6c113dbc06c |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/vibration/resources/vibrate-from-iframe.html |
@@ -0,0 +1,11 @@ |
+<!DOCTYPE html> |
+<script> |
+'use strict'; |
+ |
+window.onmessage = msg => { |
+ if (msg.data === 'Ready') { |
+ navigator.vibrate(1234); |
+ } |
+}; |
+ |
+</script> |