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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/security/resources/cross-origin-iframe-for-vibrate-blocked.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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/security/resources/same-origin-iframe-for-vibrate-allowed.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/http/tests/security/resources/cross-origin-iframe-for-vibrate-blocked.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/security/resources/referrer-attr-anchor-noreferrer-target.html b/third_party/WebKit/LayoutTests/http/tests/security/resources/cross-origin-iframe-for-vibrate-blocked.html
similarity index 56%
copy from third_party/WebKit/LayoutTests/http/tests/security/resources/referrer-attr-anchor-noreferrer-target.html
copy to third_party/WebKit/LayoutTests/http/tests/security/resources/cross-origin-iframe-for-vibrate-blocked.html
index fb75bd82e864ca03678ce63ab3576b466521aed8..854ec15014babb023b3c2643629a677c80b3b545 100644
--- a/third_party/WebKit/LayoutTests/http/tests/security/resources/referrer-attr-anchor-noreferrer-target.html
+++ b/third_party/WebKit/LayoutTests/http/tests/security/resources/cross-origin-iframe-for-vibrate-blocked.html
@@ -7,8 +7,8 @@
<body>
<script>
test(function () {
- assert_equals("", document.referrer);
- }, "noreferrer link takes precedence over referrerpolicy attribute");
+ assert_false(navigator.vibrate(200));
+ }, "A cross-origin iframe may not call navigator.vibrate: https://www.chromestatus.com/feature/5682658461876224.");
</script>
</body>
</html>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/security/resources/same-origin-iframe-for-vibrate-allowed.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698