OLD | NEW |
---|---|
1 <script> | 1 <script> |
2 if (window.testRunner) | 2 function reply(event) { |
3 testRunner.globalFlag = true; | 3 event.source.postMessage('loaded', '*'); |
4 } | |
5 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.
| |
4 </script> | 6 </script> |
OLD | NEW |