Chromium Code Reviews| 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> |