OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <title>Feature-Policy Fullscreen Relocated</title> |
| 3 <script src="/resources/testharness.js"></script> |
| 4 <script src="/resources/testharnessreport.js"></script> |
| 5 <script> |
| 6 promise_test(function(t) { |
| 7 document.location = "http://localhost:8000/feature-policy/resources/feature-po
licy-fullscreen.html"; |
| 8 return new Promise(function(resolve, reject) { |
| 9 window.addEventListener('message', function(e) { |
| 10 resolve(e.data); |
| 11 }, { once: true }); |
| 12 }).then(function(data) { |
| 13 parent.postMessage(data, '*'); |
| 14 }); |
| 15 }, 'Chaning document.location without changing iframe.src should not update the
container policy.'); |
| 16 </script> |
OLD | NEW |