summaryrefslogtreecommitdiffstats
path: root/dom/presentation/tests/mochitest/file_presentation_non_receiver_inner_iframe.html
blob: c95eddf573a0c7b252a4913dc6c071bc664ab31a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<!DOCTYPE HTML>
<html>
<head>
  <meta charset="utf-8">
  <title>Test for B2G PresentationReceiver on a non-receiver inner iframe of the receiver page at receiver side</title>
</head>
<body onload="testConnectionAvailable()">
<div id="content"></div>
<script type="application/javascript;version=1.7">

"use strict";

function ok(a, msg) {
  alert((a ? 'OK ' : 'KO ') + msg);
}

function testConnectionAvailable() {
  return new Promise(function(aResolve, aReject) {
    is(navigator.presentation.receiver, null, "navigator.presentation.receiver shouldn't be available in inner iframes with different origins from receiving pages.");
    aResolve();
  });
}

</script>
</body>
</html>