blob: 23846cf85b64f8a42cec3355ae40acd37423cc66 (
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
27
28
29
30
31
32
33
34
35
36
37
|
<!-- Any copyright is dedicated to the Public Domain.
- http://creativecommons.org/publicdomain/zero/1.0/ -->
<!DOCTYPE HTML>
<html>
<head>
<title>Test for bug 1773732</title>
<script src="/tests/SimpleTest/SimpleTest.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
</head>
<body>
<script>
SimpleTest.waitForExplicitFinish();
function go() {
let frame = document.createElement("iframe");
frame.onload = () => {
let win = frame.contentWindow;
// The processes will be remote only with isolateEverything strategy
const expected = SpecialPowers.effectiveIsolationStrategy() == SpecialPowers.ISOLATION_STRATEGY.IsolateEverything;
is(SpecialPowers.Cu.isRemoteProxy(win), expected,
"win is a remote proxy if Fission is enabled and strategy is isolateEverything");
let o = {};
Object.setPrototypeOf(o, win);
is(Object.getPrototypeOf(o), win, "should have expected proto");
SimpleTest.finish();
};
frame.src = "https://example.com";
document.body.appendChild(frame);
};
go();
</script>
</body>
</html>
|