summaryrefslogtreecommitdiffstats
path: root/toolkit/components/extensions/test/mochitest/file_simple_sandboxed_frame.html
blob: 909a1f9e364dc392f34a4c27d0b9b03ea310f472 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<!DOCTYPE HTML>

<html>
<head>
<meta charset="utf-8">
</head>
<body>

<script>
"use strict";

let req = new XMLHttpRequest();
req.open("GET", "/xhr_sandboxed");
req.send();

let sandbox = document.createElement("iframe");
sandbox.setAttribute("sandbox", "allow-scripts");
sandbox.setAttribute("src", "file_simple_sandboxed_subframe.html");
document.documentElement.appendChild(sandbox);
</script>
<img src="file_image_great.png"/>
</body>
</html>