зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1648650 [wpt PR 24351] - [html] Improve coverage for COOP, a=testonly
Automatic update from web-platform-tests [html] Improve coverage for COOP -- wpt-commits: a69120f0d95b6ce86479f7254761392471dfde7d wpt-pr: 24351
This commit is contained in:
Родитель
4a2cbd70e0
Коммит
b2f6d754d2
|
@ -29,6 +29,19 @@
|
|||
}, `<iframe sandbox="${sandboxValue}"> ${document.title}`);
|
||||
});
|
||||
|
||||
// Verify that the popup does not have sandboxing flags set
|
||||
async_test(t => {
|
||||
const frame = document.createElement("iframe");
|
||||
const channel = new BroadcastChannel(token());
|
||||
channel.onmessage = t.step_func_done();
|
||||
t.add_cleanup(() => frame.remove());
|
||||
frame.sandbox = "allow-popups allow-scripts allow-popups-to-escape-sandbox";
|
||||
frame.srcdoc = `<script>
|
||||
window.open("resources/coop-coep.py?coop=same-origin&coep=&channel=${channel.name}");
|
||||
<\/script>`;
|
||||
document.body.append(frame);
|
||||
}, `<iframe sandbox="allow-popups allow-scripts allow-popups-to-escape-sandbox"> ${document.title}`);
|
||||
|
||||
async_test(t => {
|
||||
const frame = document.createElement("iframe");
|
||||
const channel = new BroadcastChannel(token());
|
||||
|
|
Загрузка…
Ссылка в новой задаче