<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Same-origin iframe'`postMessage` has wrong `event.source`."
   href="https://bugs.webkit.org/show_bug.cgi?id=163412#c1">Comment # 1</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Same-origin iframe'`postMessage` has wrong `event.source`."
   href="https://bugs.webkit.org/show_bug.cgi?id=163412">bug 163412</a>
              from <span class="vcard"><a class="email" href="mailto:lee.wang.zhong+wk&#64;gmail.com" title="lee.wang.zhong+wk&#64;gmail.com">lee.wang.zhong+wk&#64;gmail.com</a>
</span></b>
        <pre>[Sorry, early send.]

On iOS 10 Safari, a `postMessage` from an iframe with the same origin as the parent window results in a MessageEvent with the `.source` property set to the parent window. It should be set to the window of the message source.

This is a behavior change from iOS 9.

P.S.: Because `.source` is scrubbed, if the parent has two child frames with the parent's origin, there's no data on the event object which could distinguish one frame's messages from the other's.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>