mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-27 23:02:20 +00:00
Bug 675518 - Add crashtest. r=me
This commit is contained in:
parent
8d28e8cb3d
commit
c6c08296c6
31
netwerk/test/crashtests/675518.html
Normal file
31
netwerk/test/crashtests/675518.html
Normal 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>
|
@ -1,3 +1,4 @@
|
||||
load 675518.html
|
||||
load 785753-1.html
|
||||
load 785753-2.html
|
||||
load 1274044-1.html
|
||||
|
Loading…
Reference in New Issue
Block a user