add_task(async function() {
const { Cu } = SpecialPowers;
let localFrame = await addFrame("file_empty.html");
let remoteFrame = await addFrame(
SimpleTest.getTestFileURL("file_empty.html")
.replace("mochi.test:8888", "example.com"));
ok(frames[0] === localFrame.contentWindow, "frames[0] is localFrame");
ok(frames[1] === remoteFrame.contentWindow, "frames[1] is remoteFrame");
ok(!Cu.isRemoteProxy(window), "window is not a remote proxy");
ok(!Cu.isRemoteProxy(location), "location is not a remote proxy");
ok(!Cu.isRemoteProxy(frames[0]), "frames[0] is not a remote proxy");
ok(
!Cu.isRemoteProxy(frames[0].location), "frames[0].location is not a remote proxy"
);
// The processes will be remote only with isolateEverything strategy
const expected = SpecialPowers.effectiveIsolationStrategy() == SpecialPowers.ISOLATION_STRATEGY.IsolateEverything;
is(Cu.isRemoteProxy(frames[1]), expected, "frames[1] is a remote proxy if Fission is enabled and strategy is isolateEverything");
is(Cu.isRemoteProxy(frames[1].location), expected, "frames[1].location is a remote proxy if Fission is enabled and strategy is isolateEverything");
});
</script>
</body>
</html>
Messung V0.5
¤ Dauer der Verarbeitung: 0.20 Sekunden
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.