mercadolibre/mercadolibre.js — pull request #15 by TioBorracho (2012-08-02 17:08:06+00:00)
Title: Fix for ie8 cross window postMessage

Sorry about the pkg commits, Should We keep versioning pkg files?

The fix for ie8 is this:
As IE8 does not allow postMessages between different windows, now if you log in through a popup it does the following:
- Verify it is a popup (windows.top == self)
- Call notifyParent on the parent window's xauth iframe
- the iframe is on the same domain so cross script is allowed
- the iframe can call postMessage on it's parent
I'm NOT detecting IE8 in particular, this change affects all browsers. (it is simplier)