Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- Manifest: dom/bindings/test/mochitest.toml
<!-- Any copyright is dedicated to the Public Domain.
<!DOCTYPE HTML>
<html>
<head>
<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();
};
document.body.appendChild(frame);
};
go();
</script>
</body>
</html>