I\'m sure something is wrong here but I can\'t quite put a finger on it... The example here behaves just fine with no notices or errors on the console, so it means my browse
I've just tried your code and this seems to work in Chrome. It uses jsfiddle and jsbin to pass messages between parent and child windows.
http://jsbin.com/oxesef/4/edit#preview
This is not the answer but could help you.
I use http://easyxdm.net/wp/ to avoid that kind of problems.
Carl