views:

390

answers:

0

Ok pretty random situation here and I'm kind of just grasping for an explanation so I hope this makes sense:

Our site launches reports in new tabs/windows using the basic 'window.open' javascript function. The reports are one-off things you are just meant to close when finished with them.

This works fine in general. We give open 2 parameters, firstly the URL to the desired report and secondly a 'name' of the window. Currently we are generating the name to be unique for every report run (based on the name and the time it was generated). As this name is always different a new tab is always opened; which is what we want.

One problem though that we see extremely rarely (after opening MANY tabs) is that suddenly the firefox popup blocker decides it needs to start blocking them. The weirder thing is that when you click 'allow popups from xyz site' instead of allowing popups to show it causes a new popup to open and the blocked popup message reappears ... click allow popups again just basically gets you into an infinite loop of clicking allow and new tabs being spawned.

I'm not really sure how the window.open could cause this... should I go back to using '_blank' for the window name (went to using a generated name so that the same report wouldn't be regenerated unless some time has elapsed)?? Is this just some weird firefox3 bug?