I'm using window.open(...)
to open a completely new window (same domain, same subdomain, same directory, same everything, but a different .html file). In the child window, I'm using this to send messages back to the parent:
window.opener.postMessage({status:'ready'}, window.opener.location);
It works great in Chrome and Firefox ... but not in Safari. Here are some alternatives I tried that did not work:
window.opener.* // no matter what I put, Safari says .opener is an empty object
window.parent // child refers to self despite different window, same subdomain
How can I get a reference to the parent window so I can send postMessage(...) messages back?