Notices that iframes in a page triggers also domcontentloaded events. Parent of the window of the root frame is not null instead pointing the itself. For sub frames window.parent is the actual parent window. Currently only sending the message when root frame document content is loaded.