moebius#231: Consider blocking top level window data: URIs (tests)

https://github.com/MoonchildProductions/moebius/pull/231
This commit is contained in:
janekptacijarabaci 2018-05-06 14:31:20 +02:00 • committed by Roy Tam
commit 745e1809b0
63 changed files with 157 additions and 83 deletions

View file

@ -20,6 +20,14 @@ function f()
finish();
}
function init()
{
SpecialPowers.pushPrefEnv({"set": [
["security.data_uri.block_toplevel_data_uri_navigations", false],
]}, start);
}
function start()
{
var html = "<script>" + f + "<\/script><body onload=f()>";
@ -29,5 +37,5 @@ function start()
</script>
</head>
<body onload="start();"></body>
<body onload="init();"></body>
</html>