window.frameElement is null in content script
Reported by
klesto...@gmail.com,
Mar 11 2016
|
|
Issue descriptionUserAgent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.87 Safari/537.36 Steps to reproduce the problem: I don't know, whether this is bug or not. I tried to inject content script in all iframes and found that window.frameElement property is always null in all injected scripts. It is not null only when iframe is from the same domain as main page. I created small demo extension. It injects script in all iframes and prints information in console. You can test it on site with iframes, for example, google.com. It always prints 'frameElement null' whether content script is injected to main page or to iframe. What is the expected behavior? window.frameElement property should not be null for all content scripts in iframes. Script is already injected to iframe and has full control over it, why limit it? What went wrong? window.frameElement property is not null only for iframes from the same domain as main(top) page. We can also add "permissions": ["<all_urls>"] to manifest.json. This will not help. WebStore page: Did this work before? N/A Chrome version: 49.0.2623.87 Channel: stable OS Version: 10.0 Flash Version: |
|
►
Sign in to add a comment |
|
Comment 1 by rob@robwu.nl
, Mar 21 2016Status: WontFix (was: Unconfirmed)