summaryrefslogtreecommitdiffstats
path: root/toolkit/components/extensions/test/mochitest/file_simple_xhr_frame2.html
blob: 6174a0b402b64c7fd617a3907b94f8bbd5d9ab18 (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_resource_2");
req.send();

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