// Load about:srcdoc in a iframe. Check the document.baseURI is still // correct after the parent changes its base URL.. const runTest = (description, sandbox_flags) => { promise_test(async test => { // Create child. const iframe = document.createElement("iframe"); if (sandbox_flags !== null) iframe.sandbox = sandbox_flags; iframe.srcdoc = `