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

Unified Diff: LayoutTests/http/tests/misc/resources/content-iframe.html

Issue 475933003: Remove testRunner.globalFlag use from layout tests outside http/security (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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/misc/resources/content-iframe.html
diff --git a/LayoutTests/http/tests/misc/resources/content-iframe.html b/LayoutTests/http/tests/misc/resources/content-iframe.html
index f03e9f704ae74ac5e547a869f1905232e055049c..20cba708f68efb6479838aea8b09792657439856 100644
--- a/LayoutTests/http/tests/misc/resources/content-iframe.html
+++ b/LayoutTests/http/tests/misc/resources/content-iframe.html
@@ -1,4 +1,6 @@
<script>
-if (window.testRunner)
- testRunner.globalFlag = true;
+ function reply(event) {
+ event.source.postMessage('loaded', '*');
+ }
+ window.addEventListener('message', reply);
esprehn 2014/08/21 19:44:07 Why not do this the other way around and window.op
dcheng 2014/08/21 20:18:10 Because window.opener is (or should be) null here.
</script>

Powered by Google App Engine
This is Rietveld 408576698