<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>17481</bug_id>
          
          <creation_ts>2012-06-13 12:59:15 +0000</creation_ts>
          <short_desc>Not clear what &quot;script that invoked the method&quot; means exactly. Should this be changed to &quot;entry script&quot; instead? If not, please specify what it means.</short_desc>
          <delta_ts>2013-02-13 00:46:00 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WHATWG</product>
          <component>HTML</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>18242</dup_id>
          
          <bug_file_loc>http://www.whatwg.org/specs/web-apps/current-work/#posting-messages</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>ian</cc>
    
    <cc>mike</cc>
    
    <cc>zcorpan</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>69024</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2012-06-13 12:59:15 +0000</bug_when>
    <thetext>Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/web-messaging.html
Multipage: http://www.whatwg.org/C#posting-messages
Complete: http://www.whatwg.org/c#posting-messages

Comment:
Not clear what &quot;script that invoked the method&quot; means exactly. Should this be
changed to &quot;entry script&quot; instead? If not, please specify what it means.

Posted from: 2001:4c28:a030:30:fdc9:a7c:a388:2bea by simonp@opera.com
User agent: Opera/9.80 (Macintosh; Intel Mac OS X 10.7.3; U; en) Presto/2.10.229 Version/11.64</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69281</commentid>
    <comment_count>1</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2012-06-20 06:58:55 +0000</bug_when>
    <thetext>So we have a site compat issue here. Yahoo Mail requires the following to alert true

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

 b.html: 
 &lt;script&gt; 
 function B() { parent.postMessage(&apos;foo&apos;, &apos;*&apos;); } 
 &lt;/script&gt;

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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70951</commentid>
    <comment_count>2</comment_count>
    <who name="">contributor</who>
    <bug_when>2012-07-18 17:48:33 +0000</bug_when>
    <thetext>This bug was cloned to create bug 18242 as part of operation convergence.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>74343</commentid>
    <comment_count>3</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2012-09-24 03:26:51 +0000</bug_when>
    <thetext>That&apos;s what the &quot;script that invoked the method&quot; is. Why is this ambiguous? The concept of a &quot;script&quot; is defined in quite excruciating detail...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>79241</commentid>
    <comment_count>4</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2012-12-02 03:35:07 +0000</bug_when>
    <thetext>zcorpan: Can you elaborate on what you&apos;d like the spec to say? Would hyperlinking &quot;script&quot; to concept-script be enough?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>79269</commentid>
    <comment_count>5</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2012-12-03 10:41:20 +0000</bug_when>
    <thetext>Yeah, I think so.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>83081</commentid>
    <comment_count>6</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-02-13 00:46:00 +0000</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 18242 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>