Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(171)

Unified Diff: LayoutTests/http/tests/history/back-to-javascript-url-iframe.html

Issue 221673003: Defer iframe JavaScript URL evaluation (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/http/tests/history/back-to-javascript-url-iframe.html
diff --git a/LayoutTests/http/tests/history/back-to-javascript-url-iframe.html b/LayoutTests/http/tests/history/back-to-javascript-url-iframe.html
index 13bd7e2d46e1679f90e61bf42cf8f550ca5c58f3..36d98a5b41b4e84b622f9f4f9425936293804ee4 100644
--- a/LayoutTests/http/tests/history/back-to-javascript-url-iframe.html
+++ b/LayoutTests/http/tests/history/back-to-javascript-url-iframe.html
@@ -8,7 +8,9 @@ if (window.testRunner) {
var a=document.createElement("iframe");
a.src="javascript:''";
document.body.appendChild(a);
-a.contentWindow.location.replace('resources/back-to-javascript-url-iframe-iframe.html')
+setTimeout(function() {
+ a.contentWindow.location.replace('resources/back-to-javascript-url-iframe-iframe.html')
+}, 0);
function test() {
if (sessionStorage.getItem("javascript-url-iframe") == null) {

Powered by Google App Engine
This is Rietveld 408576698