How to get contentWindow of the frame after the change of its cross-origin source by a script?
问题 I am developing a Chrome/Firefox extension, which is intended to be used only with my own Web-application that should semi-automatically process different Web-pages in a certain specific way. In the context of this question my application is just a single Web-page, containing a single iFrame , which source is initially from the same domain. When an application's user chooses the URL of a page to be processed, this URL is assigned as the new source of the frame. To process the chosen page,