Bug 93089
| Summary: | window.parent.postMessage not working | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Alon <alon.nativ> |
| Component: | WebCore JavaScript | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED CONFIGURATION CHANGED | ||
| Severity: | Major | CC: | abarth, ap, karlcow, windrakerltd |
| Priority: | P2 | ||
| Version: | 528+ (Nightly build) | ||
| Hardware: | Mac | ||
| OS: | OS X 10.7 | ||
Alon
When there is an iFrame window.parent.postMessage not working
Unable to post message to https://www.google.com. Recipient has origin http://***
It happens on the latest version of chrome (only on mac 21.0.1180.57
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Alexey Proskuryakov
Perhaps targetOrigin doesn't match?
Do you have a test case where we could see this in action?
Alon
Here is a case:
1. go to http://instore-script.bestmat.ch/launcher/bestbuy
2. copy the script to the clipboard
3. go to http://www.bestbuy.com/site/index.jsp
4. open chrome console and paste the script (from #1)
You will see an error:
Unable to post message to https://www.google.com. Recipient has origin http://www.bestbuy.com.
This error doesn't happens on Chrome on Windows (or even canary for mac)
Thanks,
A.
Alexey Proskuryakov
Tested with Safari 6 and the latest nightly from <http://nightly.webkit.org>, and cannot reproduce.
> This error doesn't happens on Chrome on Windows (or even canary for mac)
So you're saying that this happens in stable Chrome, but not in canary? That would mean that the bug is fixed as fat as the WebKit project is concerned.
Karl Dubost
Probably configuration Changed here.
The script is not available anymore.
So it's hard to know if there is (still) a bug