browser_bug1081537.js (411B)
1 // This test is useful because mochitest-browser runs as an addon, so we test 2 // addon-scope paths here. 3 var ifr; 4 function test() { 5 ifr = document.createXULElement("iframe"); 6 document.getElementById("main-window").appendChild(ifr); 7 is(ifr.contentDocument.nodePrincipal.origin, "[System Principal]"); 8 ifr.contentDocument.open(); 9 ok(true, "Didn't throw"); 10 } 11 registerCleanupFunction(() => ifr.remove());