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