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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/security/vibrate_in_same_origin_iframe_allowed.html

Issue 2354433002: Block navigator.vibrate in cross-domain iframe. (Closed)
Patch Set: Change the error message to: "A call of navigator.vibrate will be no-op inside cross-origin iframes" Created 4 years, 3 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/vibrate_in_same_origin_iframe_allowed.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/security/vibrate_in_same_origin_iframe_allowed.html b/third_party/WebKit/LayoutTests/http/tests/security/vibrate_in_same_origin_iframe_allowed.html
new file mode 100644
index 0000000000000000000000000000000000000000..770c058a5edf4e6c57c54c3dcd8a4ab0f37029da
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/http/tests/security/vibrate_in_same_origin_iframe_allowed.html
@@ -0,0 +1,9 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>Vibrate in same-origin iframe is allowed.</title>
+ <script src="/resources/testharness.js"></script>
+ <script src="/resources/testharnessreport.js"></script>
+ </head>
+ <iframe id="iframe" src="resources/same-origin-iframe-for-vibrate-allowed.html"></iframe>
+</html>

Powered by Google App Engine
This is Rietveld 408576698