зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1365857 - fix tests that use document.open() in data: URI. r=smaug
This commit is contained in:
Родитель
a3552b2d1f
Коммит
7c05dba5d4
|
@ -0,0 +1 @@
|
|||
<script>function f() { history.length; } window.onload = function() { var f = window.f; document.open(); document.close(); parent.continueTest(f); }</script>
|
|
@ -0,0 +1 @@
|
|||
<script>window.onload = function runTest1() { document.open(); setTimeout('parent.test1Done();'); document.close(); }</script>
|
|
@ -128,6 +128,7 @@ support-files =
|
|||
file_bug1274806.html
|
||||
file_domwindowutils_animation.html
|
||||
file_general_document.html
|
||||
file_history_document_open.html
|
||||
file_htmlserializer_1.html
|
||||
file_htmlserializer_1_bodyonly.html
|
||||
file_htmlserializer_1_format.html
|
||||
|
@ -152,6 +153,7 @@ support-files =
|
|||
file_mozfiledataurl_img.jpg
|
||||
file_record_orientation.html
|
||||
file_restrictedEventSource.sjs
|
||||
file_settimeout_inner.html
|
||||
file_simplecontentpolicy.js
|
||||
file_timer_flood.html
|
||||
file_websocket_basic_wsh.py
|
||||
|
|
|
@ -29,7 +29,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=943418
|
|||
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=943418">Mozilla Bug 943418</a>
|
||||
<p id="display"></p>
|
||||
<div id="content" style="display: none">
|
||||
<iframe src="data:text/html,<script>function f() { history.length; } window.onload = function() { var f = window.f; document.open(); document.close(); parent.continueTest(f); }</script>" </script>
|
||||
<iframe src="file_history_document_open.html"></script>
|
||||
</div>
|
||||
<pre id="test">
|
||||
</pre>
|
||||
|
|
|
@ -24,9 +24,15 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=936129
|
|||
window.runTest2();
|
||||
setTimeout(allDone);
|
||||
}
|
||||
iframe.src = "about:blank";
|
||||
|
||||
// Per whatwg spec, "If the src attribute and the srcdoc attribute are
|
||||
// both specified together, the srcdoc attribute takes priority."
|
||||
//
|
||||
// So if we were to use src attribute here, it will be considered as a
|
||||
// no-op, so simply use a simple srcdoc here.
|
||||
iframe.srcdoc = "<html></html>";
|
||||
}
|
||||
iframe.src = "data:text/html,<script>function runTest2() { setTimeout('parent.test2Done()'); };<" + "/script>";
|
||||
iframe.srcdoc = "<script>function runTest2() { setTimeout('parent.test2Done()'); };<" + "/script>";
|
||||
}
|
||||
window.test2DoneCalled = false;
|
||||
function test2Done()
|
||||
|
@ -45,7 +51,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=936129
|
|||
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=936129">Mozilla Bug 936129</a>
|
||||
<p id="display"></p>
|
||||
<div id="content" style="display: none">
|
||||
<iframe id="testFrame" src="data:text/html,<script>window.onload = function runTest1() { document.open(); setTimeout('parent.test1Done();'); document.close(); }</script>"></iframe>
|
||||
<iframe id="testFrame" src="file_settimeout_inner.html"></iframe>
|
||||
</div>
|
||||
<pre id="test">
|
||||
</pre>
|
||||
|
|
Загрузка…
Ссылка в новой задаче