mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-09 17:31:47 +09:00
moebius#231: Consider blocking top level window data: URIs (tests)
https://github.com/MoonchildProductions/moebius/pull/231
This commit is contained in:
parent
b6f0383b26
commit
745e1809b0
63 changed files with 157 additions and 83 deletions
|
|
@ -22,7 +22,7 @@ t.step(function() {
|
|||
}), 1000);
|
||||
controller.navigate();
|
||||
})
|
||||
ws.onerror = ws.onmessage = ws.onclose = t.step_func(function(e) {assert_unreached("Got unexpected event " + e.type)});
|
||||
ws.onerror = ws.onmessage = t.step_func(e => assert_unreached("Got unexpected event " + e.type));
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -0,0 +1,4 @@
|
|||
<!doctype html>
|
||||
<title>WebSockets: navigating top-level browsing context</title>
|
||||
<body onload="history.back()"></body>
|
||||
</html>
|
||||
|
|
@ -20,6 +20,6 @@ t.step(function() {
|
|||
});
|
||||
});
|
||||
navigate = t.step_func(function() {
|
||||
w.location = 'data:text/html,<body onload="history.back()">';
|
||||
w.location = w.location.href.replace("001-1.html", "001-2.html");
|
||||
});
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ t.step(function() {
|
|||
controller.navigate();
|
||||
});
|
||||
})
|
||||
ws.onerror = ws.onmessage = ws.onclose = t.step_func(function(e) {assert_unreached("Got unexpected event " + e.type)});
|
||||
ws.onerror = ws.onmessage = t.step_func(e => assert_unreached("Got unexpected event " + e.type));
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -0,0 +1,4 @@
|
|||
<!doctype html>
|
||||
<title>WebSockets: navigating top-level browsing context with closed websocket</title>
|
||||
<body onload="history.back()"></body>
|
||||
</html>
|
||||
|
|
@ -21,6 +21,6 @@ t.step(function() {
|
|||
});
|
||||
});
|
||||
navigate = t.step_func(function() {
|
||||
w.location = 'data:text/html,<body onload="history.back()">';
|
||||
w.location = w.location.href.replace("002-1.html", "002-2.html");
|
||||
});
|
||||
</script>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue