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
The following statement will be true if window is a popup window or subframe:
window.parent != window