1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/content/base/crashtests/851353-1.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,25 @@ 1.4 +<!DOCTYPE html> 1.5 +<html class="reftest-wait"> 1.6 +<head> 1.7 + <meta charset="UTF-8"> 1.8 + <script> 1.9 + function start() { 1.10 + var doc = document.getElementsByTagName("iframe")[0].contentDocument; 1.11 + var vid = doc.getElementsByTagName("video")[0]; 1.12 + 1.13 + function runnable() { 1.14 + // The doc.write forces us to recreate doc's body. 1.15 + doc.write("Hello, world"); 1.16 + doc.body.appendChild(vid); 1.17 + document.documentElement.removeAttribute("class"); 1.18 + } 1.19 + 1.20 + doc.open(); 1.21 + setTimeout(runnable, 0); 1.22 + } 1.23 + </script> 1.24 +</head> 1.25 +<body onload='start()'> 1.26 + <iframe src="data:text/html,<meta charset=UTF-8><body><video src=http://localhost:8080/ controls=true loop=true autoplay=true autobuffer=false></video>"></iframe> 1.27 +</body> 1.28 +</html>