Bug 1060191 - Web compat issues with window.open, add test case

https://bugzilla.mozilla.org/show_bug.cgi?id=1060191