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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/feature-policy-experimental-features/vibrate-allowed-by-container-policy.html

Issue 2767983003: Initial Implementation of Iframe Attribute for Feature Policy (Part 4) (Closed)
Patch Set: Codereview: nit + added more unit tests for container policy Created 3 years, 7 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
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../../resources/testharness.js"></script>
5 <script src="../../resources/testharnessreport.js"></script>
6 <script>
7 if (window.testRunner) {
8 testRunner.dumpAsText();
9 testRunner.dumpChildFramesAsText();
10 }
11
12 function loaded() {
13 var iframes = document.getElementsByTagName('iframe');
14 for (var i = 0; i < iframes.length; ++i) { // < 1; ++i) { //
15 var iframe = iframes[i];
16 // The iframe uses eventSender to emulate a user navigatation, which require s absolute coordinates.
17 iframe.contentWindow.postMessage({x: iframe.offsetLeft, y: iframe.offsetTop} , "*");
18 }
19 }
20 </script>
21 </head>
22 <body onload="loaded();">
23 <iframe id="f1" src="resources/feature-policy-vibrate-enabled.html" allow="vibra te"></iframe>
24 <iframe id="f2" src="http://localhost:8000/feature-policy/feature-policy-vibrate -enabled.html" allow="vibrate"></iframe>
25 </body>
26 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698