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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/security/vibration/resources/vibrate-in-same-origin-iframe-with-user-gesture-allowed.html

Issue 2834493002: Remove vibrate w/o user gesture by default (Closed)
Patch Set: Change to turn on by default Created 3 years, 8 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/vibration/resources/vibrate-in-same-origin-iframe-with-user-gesture-allowed.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/security/vibration/resources/vibrate-in-same-origin-iframe-with-user-gesture-allowed.html b/third_party/WebKit/LayoutTests/http/tests/security/vibration/resources/vibrate-in-same-origin-iframe-with-user-gesture-allowed.html
deleted file mode 100644
index 92031383f4a12e9c77546779e1e9edad041d8b5e..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/http/tests/security/vibration/resources/vibrate-in-same-origin-iframe-with-user-gesture-allowed.html
+++ /dev/null
@@ -1,54 +0,0 @@
-<html>
-<head>
- <title>Testing vibrate 3 times in an iframe</title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="/js-test-resources/user-gesture-utils.js"></script>
- <script>
- function loaded()
- {
- document.getElementsByTagName('h4')[0].innerHTML = document.domain;
- }
-
- function startTest(event)
- {
- // A manual click should enable vibrate.
- if (window.eventSender) {
- test(function() {
- assert_true(
- navigator.vibrate(200),
- "1. Vibrate w/o user gesture is deprecated and will be blocked in M60.");
- });
- var element = document.getElementById("b");
- simulateUserClick(element.offsetLeft + event.data.x + 2, element.offsetTop + event.data.y + 2);
- }
- }
-
- function performTestAfterClick()
- {
- test(function () {
- assert_true(
- navigator.vibrate(200),
- "3. Vibrate after user gesture succeeded.");
- });
- }
-
- function performTestWithClick()
- {
- test(function () {
- assert_true(
- navigator.vibrate(200),
- "2. Vibrate triggered by user gesture succeeded.");
- });
- window.requestAnimationFrame(performTestAfterClick);
- }
-
- window.addEventListener("message", startTest, false);
- </script>
-</head>
-<body onload="loaded();">
- <h4>DOMAIN</h4>
- <button id="b" onclick="performTestWithClick();">Perform Test</button>
-</body>
-</html>
-

Powered by Google App Engine
This is Rietveld 408576698