I was getting same error message, but my solution was different.

I was calling function using a href="javascript:showWindow(this)"

and then used "this" as source for win.open()
Worked fine in...