mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-27 10:57:34 +09:00
import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo
This commit is contained in:
commit
dcd9973243
150858 changed files with 23884658 additions and 0 deletions
|
|
@ -0,0 +1,25 @@
|
|||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
<title>Sandboxing: Retrieving display availability from a nested context succeeds when allow-presentation is set</title>
|
||||
<link rel="author" title="Francois Daoust" href="https://www.w3.org/People/#fd">
|
||||
<link rel="help" href="http://w3c.github.io/presentation-api/#dom-presentationrequest-getavailability">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script>
|
||||
async_test(function (t) {
|
||||
function startWhenReady(ev) {
|
||||
var childFrame = document.getElementById('childFrame');
|
||||
if (ev.data === 'ready') {
|
||||
window.removeEventListener('message', startWhenReady);
|
||||
childFrame.contentWindow.postMessage('getAvailability', '*');
|
||||
window.addEventListener('message', t.step_func(function (ev) {
|
||||
assert_equals(ev.data, 'success',
|
||||
'Presentation sandboxing did not work as expected.');
|
||||
t.done();
|
||||
}));
|
||||
}
|
||||
}
|
||||
window.addEventListener('message', startWhenReady);
|
||||
});
|
||||
</script>
|
||||
<iframe id="childFrame" sandbox="allow-scripts allow-presentation" style="display:none" src="support/iframe.html"></iframe>
|
||||
Loading…
Add table
Add a link
Reference in a new issue