gecko-dev/dom/html/test/browser_bug1081537.js
Victor Porof 0a8ff0ad85 Bug 1561435 - Format dom/, a=automatic-formatting
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D35951

--HG--
extra : source : 62f3501af4bc1c0bd1ee1977a28aee04706a6663
2019-07-05 10:44:55 +02:00

12 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());