{"action":"closed","issue":{"url":"https://api.github.com/repos/superroma/testcafe-hammerhead/issues/133","labels_url":"https://api.github.com/repos/superroma/testcafe-hammerhead/issues/133/labels{/name}","comments_url":"https://api.github.com/repos/superroma/testcafe-hammerhead/issues/133/comments","events_url":"https://api.github.com/repos/superroma/testcafe-hammerhead/issues/133/events","html_url":"https://github.com/superroma/testcafe-hammerhead/issues/133","id":108332188,"number":133,"title":"Wrong proxing window.onmessage event handler if it has 'object' type","user":{"login":"miherlosev","id":4133518,"avatar_url":"https://avatars.githubusercontent.com/u/4133518?v=3","gravatar_id":"","url":"https://api.github.com/users/miherlosev","html_url":"https://github.com/miherlosev","followers_url":"https://api.github.com/users/miherlosev/followers","following_url":"https://api.github.com/users/miherlosev/following{/other_user}","gists_url":"https://api.github.com/users/miherlosev/gists{/gist_id}","starred_url":"https://api.github.com/users/miherlosev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miherlosev/subscriptions","organizations_url":"https://api.github.com/users/miherlosev/orgs","repos_url":"https://api.github.com/users/miherlosev/repos","events_url":"https://api.github.com/users/miherlosev/events{/privacy}","received_events_url":"https://api.github.com/users/miherlosev/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/superroma/testcafe-hammerhead/labels/AREA:%20client","name":"AREA: client","color":"fef2c0"},{"url":"https://api.github.com/repos/superroma/testcafe-hammerhead/labels/COMPLEXITY:%20easy","name":"COMPLEXITY: easy","color":"bfdadc"},{"url":"https://api.github.com/repos/superroma/testcafe-hammerhead/labels/SYSTEM:%20sandbox","name":"SYSTEM: sandbox","color":"bfe5bf"},{"url":"https://api.github.com/repos/superroma/testcafe-hammerhead/labels/TYPE:%20bug","name":"TYPE: bug","color":"f7c6c7"}],"state":"closed","locked":false,"assignee":{"login":"miherlosev","id":4133518,"avatar_url":"https://avatars.githubusercontent.com/u/4133518?v=3","gravatar_id":"","url":"https://api.github.com/users/miherlosev","html_url":"https://github.com/miherlosev","followers_url":"https://api.github.com/users/miherlosev/followers","following_url":"https://api.github.com/users/miherlosev/following{/other_user}","gists_url":"https://api.github.com/users/miherlosev/gists{/gist_id}","starred_url":"https://api.github.com/users/miherlosev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miherlosev/subscriptions","organizations_url":"https://api.github.com/users/miherlosev/orgs","repos_url":"https://api.github.com/users/miherlosev/repos","events_url":"https://api.github.com/users/miherlosev/events{/privacy}","received_events_url":"https://api.github.com/users/miherlosev/received_events","type":"User","site_admin":false},"milestone":null,"comments":0,"created_at":"2015-09-25T13:58:55Z","updated_at":"2015-09-29T08:08:53Z","closed_at":"2015-09-29T08:08:53Z","body":"Page for reproduce:\r\n```javascript\r\n<html>\r\n\t<body>\r\n\t\t<h1 id=\"msg\"></h1>\r\n\t\t<br/>\r\n\t\t<input type=\"button\" value=\"Send message\" id=\"sendMsg\">\r\n\t\t<script>\r\n\t\t    var eventHandler = {\r\n\t\t\t\thandleEvent: function(e) {\r\n\t\t\t\t\tvar msg = document.getElementById('msg');\r\n\t\t\t\t\tmsg.textContent = e.data.toString();\r\n\t\t\t\t}\r\n\t\t\t};\r\n\t\t\twindow.addEventListener('message', eventHandler);\r\n\t\t\t\r\n\t\t\tvar sendMsgButton = document.getElementById('sendMsg');\r\n\t\t\tsendMsgButton.addEventListener('click', function() {\r\n\t\t\t\twindow.postMessage('test message reseived', '*');\r\n\t\t\t});\r\n\t\t</script>\r\n\t</body>\r\n</html>\r\n```\r\n\r\nOpen page in playground and click 'Send message' button.\r\nIn console we've got a script error:\r\n'Uncaught TypeError: originListener.call is not a function'"}}