The exception handling code of my web application sometimes reports back that window.open returns null or undefined. This is sporadic and I see it happening most of the time with Firefox 4.0.1 and 5.0 and, to a lesser extent, with Chrome.
When and why does that happen in correlation with a specific browser?
I heard somewhere that IE8 and IE9 can do that when working in protected mode. Is that true? And what about Firefox? Opera? Chrome? Safari?
Important notes:
- window.open is invoked directly inside an onclick event (it is not deferred as that would cause most browser's popup blocker to display an alert).
- window.open opens a blank window whose HTML content is then manipulated via javascript
- please do not reply telling me "why do you use window.open? why not instead do (anything else here)" as this would be off-topic.