This repository has been archived by the owner on May 30, 2023. It is now read-only.
Issues with frames and postMessage
#14127
Labels
postMessage
#14127
I'm using PhantomJS with Karma and running into some issues using
postMessage
on frames.Note that I'm already handling the need for appending
base/
to my URLs as per issue #14119, so it is not that the URLs are a problem.Here are the following idiosyncrasies I've observed:
postMessage
should not post messages to all windows (including itself) at the designated origin, but only to the window on which
postMessage
is called (incidentally, I think the old way was much cooler, but the spec doesn't support this and Chrome doesn't either). In the case of PhantomJS, I am not able to successfully post a message on my iframe'scontentWindow
, and sometimes the child frame can post onparent
but sometimes not. I can work around this by having a window post to itself, but again, this is not standard.The text was updated successfully, but these errors were encountered: