This question is not the duplicate of if window is popup , But a similar one.
I am developing a extension which injects scripts to all web pages. I need to detect w
I use this code to determine a popup window
(window.opener && window.opener !== window && !window.menubar.visible)