// Tests that a popup about:blank window inherits its base url from // the initiator, and not the opener. const runTest = (description) => { const opener_base_uri = document.baseURI; promise_test((test) => { return new Promise(async resolve => { window.popup = window.open(); test.add_cleanup(() => popup.close()); assert_equals(window.popup.location.href, 'about:blank'); // Create iframe to be the initiator. const iframe = document.createElement('iframe'); iframe.srcdoc = `