Stephen Kellett wrote:
Scenario: I'm in a JavaScript callback (for example the callHook callback) and I have a JSContext * and a JSScript at my disposal. How can I get the page source code for this page?
You can't, in general.
However if its a non-local file such as http://someWebAddress/page.html or one of the chrome:// pages then I can't open that. I don't want to fetch the page myself as the page content may be different for each call - I want the same source as the page which resulted in my script being called.
That may not be stored anywhere. -Boris _______________________________________________ mozilla-embedding mailing list mozilla-embedding@mozilla.org http://mail.mozilla.org/listinfo/mozilla-embedding