1
0
Fork 0
firefox/dom/html/test/browser_bug1081537.js
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

11 lines
411 B
JavaScript

// This test is useful because mochitest-browser runs as an addon, so we test
// addon-scope paths here.
var ifr;
function test() {
ifr = document.createXULElement("iframe");
document.getElementById("main-window").appendChild(ifr);
is(ifr.contentDocument.nodePrincipal.origin, "[System Principal]");
ifr.contentDocument.open();
ok(true, "Didn't throw");
}
registerCleanupFunction(() => ifr.remove());