lloyd/winchan — Issue #22: various problems in older browsers
Author: julienw
Created: 2012-02-10 11:23:15+00:00
State: open

Hi,

not sure it will be really useful now but it might be of interest anyway.

I found that some older browsers are not correctly handling postMessage. Here are the problems :

- IE8 and some versions of Opera implement postMessage in a synchronous way. (I know you're handling this with a setTimeout so I guess that's OK, but i wanted to make known that it may happens in Opera too :) )
- Some versions of Opera (I think versions before 10) use event.domain instead of event.origin. Also, event.domain only contains the domain, and not the port neither the scheme.
- when you use attachEvent in IE8, you should put at the beginning of your handler something like :
```Javascript
event = event || window.event;
```

I think that the last point is simple enough to be done. The second point could be done if you want to support Opera 9, but I'd understand if you decide not to :-)