[Bug 17481] Not clear what "script that invoked the method" means exactly. Should this be changed to "entry script" instead? If not, please specify what it means.

https://www.w3.org/Bugs/Public/show_bug.cgi?id=17481

--- Comment #1 from Simon Pieters <simonp@opera.com> 2012-06-20 06:58:55 UTC ---
So we have a site compat issue here. Yahoo Mail requires the following to alert
true

 a.html: 
 <iframe src=b.html></iframe> 
 <script> 
 function A() { window[0].B(); } 
 onload = A; 
 onmessage = function(e) { alert(e.source === window[0]); }; 
 </script> 

 b.html: 
 <script> 
 function B() { parent.postMessage('foo', '*'); } 
 </script>

That is, .source should be the window of the function that calls postMessage
(even if that function was called from another window). The same logic should
apply to .origin.

-- 
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Wednesday, 20 June 2012 06:59:01 UTC