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

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

Issue 2778693004: Remove navigator.vibrate without user gesture. (Closed)
Patch Set: remove debugging code 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 unified diff | Download patch
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script src="/resources/testharness.js"></script> 3 <script src="/resources/testharness.js"></script>
4 <script src="/resources/testharnessreport.js"></script> 4 <script src="/resources/testharnessreport.js"></script>
5 <script> 5 <script>
6 var test = async_test( 6 var test = async_test(
7 "Testing vibrate 3 times in a x-origin iframe: " + 7 "Testing vibrate 3 times in an iframe: " +
8 " 1. blocked before user gesture;" + 8 " 1. blocked before user gesture;" +
9 " 2. succeed during the click event;" + 9 " 2. succeed during the click event;" +
10 " 3. succeed after user click."); 10 " 3. succeed after user click.");
11 function loaded() 11 function loaded()
12 { 12 {
13 document.getElementsByTagName('h4')[0].innerHTML = document.domain; 13 document.getElementsByTagName('h4')[0].innerHTML = document.domain;
14 } 14 }
15 15
16 function startTest(event) 16 function startTest(event)
17 { 17 {
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 } 51 }
52 52
53 window.addEventListener("message", startTest, false); 53 window.addEventListener("message", startTest, false);
54 </script> 54 </script>
55 </head> 55 </head>
56 <body onload="loaded();"> 56 <body onload="loaded();">
57 <h4>DOMAIN</h4> 57 <h4>DOMAIN</h4>
58 <button id="b" onclick="performTestWithClick();">Perform Test</button> 58 <button id="b" onclick="performTestWithClick();">Perform Test</button>
59 </body> 59 </body>
60 </html> 60 </html>
61
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698