Bug 675518 - Add crashtest. r=me

This commit is contained in:
Jesse Ruderman 2017-10-25 14:58:33 -04:00
parent 8d28e8cb3d
commit c6c08296c6
2 changed files with 32 additions and 0 deletions

View File

@ -0,0 +1,31 @@
<!DOCTYPE html>
<script>
function init()
{
SpecialPowers.pushPrefEnv({"set": [
["security.data_uri.unique_opaque_origin", false],
["security.data_uri.block_toplevel_data_uri_navigations", false],
]}, boom);
}
function boom()
{
var frame = document.createElementNS("http://www.w3.org/1999/xhtml", "iframe");
frame.src = "data:text/html,1";
document.body.appendChild(frame);
var frameWin = frame.contentWindow;
var resizeListener = function() {
frameWin.removeEventListener("resize", resizeListener, false);
frameWin.document.write("3...");
};
frameWin.addEventListener("resize", resizeListener, false);
frameWin.document.write("2...");
SpecialPowers.clearUserPref("security.data_uri.unique_opaque_origin");
}
</script>
<body onload="init();"></body>
</html>

View File

@ -1,3 +1,4 @@
load 675518.html
load 785753-1.html
load 785753-2.html
load 1274044-1.html