1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/browser/base/content/test/general/file_bug822367_5.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,24 @@ 1.4 +<!DOCTYPE HTML> 1.5 +<html> 1.6 +<!-- 1.7 +Test 5 for Mixed Content Blocker User Override - Mixed Script in document.open() 1.8 +https://bugzilla.mozilla.org/show_bug.cgi?id=822367 1.9 +--> 1.10 +<head> 1.11 + <meta charset="utf-8"> 1.12 + <title>Test 5 for Bug 822367</title> 1.13 + <script> 1.14 + function createDoc() 1.15 + { 1.16 + var doc=document.open("text/html","replace"); 1.17 + doc.write('<!DOCTYPE html><html><body><p id="p1">This is some content</p><script src="http://example.com/browser/browser/base/content/test/general/file_bug822367_1.js">\<\/script\>\<\/body>\<\/html>'); 1.18 + doc.close(); 1.19 + } 1.20 + </script> 1.21 +</head> 1.22 +<body> 1.23 + <div id="testContent"> 1.24 + <img src="https://example.com/tests/image/test/mochitest/blue.png" onload="createDoc()"> 1.25 + </div> 1.26 +</body> 1.27 +</html>