1 <!-- Any copyright is dedicated to the Public Domain.
2 - http://creativecommons.org/publicdomain/zero/1.0/ -->
6 <title>Test for bug
1773732</title>
7 <script src=
"/tests/SimpleTest/SimpleTest.js"></script>
8 <link rel=
"stylesheet" type=
"text/css" href=
"/tests/SimpleTest/test.css" />
13 SimpleTest
.waitForExplicitFinish();
16 let frame
= document
.createElement("iframe");
17 frame
.onload
= () => {
18 let win
= frame
.contentWindow
;
20 // The processes will be remote only with isolateEverything strategy
21 const expected
= SpecialPowers
.effectiveIsolationStrategy() == SpecialPowers
.ISOLATION_STRATEGY
.IsolateEverything
;
23 is(SpecialPowers
.Cu
.isRemoteProxy(win
), expected
,
24 "win is a remote proxy if Fission is enabled and strategy is isolateEverything");
26 Object
.setPrototypeOf(o
, win
);
27 is(Object
.getPrototypeOf(o
), win
, "should have expected proto");
30 frame
.src
= "https://example.com";
31 document
.body
.appendChild(frame
);