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 whether the window is popup or not.
Note: I am not the one who is opening the popup window, So the above solution won't work.