mozilla / chromeless

DEPRECATED - Build desktop applications with web technologies.
http://mozillalabs.com/chromeless
761 stars 117 forks source link

Webcontent.inject fails when the content is loaded from remote webserver #152

Closed yeshvanthni closed 3 years ago

yeshvanthni commented 13 years ago

Webcontent.inject fails when the content loaded in the iframe is from a remote webserver/localhost.

Steps to reproduce:

-Using the existing tests\iframe_injection application with the following changes.

-change the src as follows, iframe.src = "http://localhost/inner-page.html";

In most user scenarios the webcontent in the iframe is loaded from the remote server which makes the inject unavailable in most cases.

yeshvanthni commented 13 years ago

Here are my observations

-the function attached to the window is available on progress levels 0 and 50%. It is undefined on 100%. I believe we are receiving a new instance of a window rather than the original window.

-Injecting on load-stop works as long as the method is used after the document ready bur fails when used onload scripts