Skip to content
This repository has been archived by the owner on May 30, 2023. It is now read-only.

Issues with frames and postMessage #14127

Closed
brettz9 opened this issue Mar 23, 2016 · 1 comment
Closed

Issues with frames and postMessage #14127

brettz9 opened this issue Mar 23, 2016 · 1 comment
Labels

Comments

@brettz9
Copy link

brettz9 commented Mar 23, 2016

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:

  1. The iframe is actually somehow loaded to show logging before the parent frame which dynamically loads it. I don't know whether this may have some partial bearing on the behaviors below.
  2. Although Firefox had, at least at one point, implemented this behavior, 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's contentWindow, and sometimes the child frame can post on parent but sometimes not. I can work around this by having a window post to itself, but again, this is not standard.
@stale stale bot added the stale label Dec 27, 2019
@stale
Copy link

stale bot commented Dec 30, 2019

Due to our very limited maintenance capacity, we need to prioritize our development focus on other tasks. Therefore, this issue will be automatically closed (see #15395 for more details). In the future, if we see the need to attend to this issue again, then it will be reopened. Thank you for your contribution!

@stale stale bot closed this as completed Dec 30, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant