Hello, developpers!
I wrote a component.dll for Netscape6 which tries to interact with it.
I need your comments or links I could follow.
Firstly I got component started via javascript, but I could not force
the existing browser to LoadURL into specific frame.
Here is how I'm trying to connect to the browser:
nsIBrowserInstance *browser;
nsIDocShell *docshell;
rv = nsServiceManager::GetService("@mozilla.org/appshell/component/browser/instance;1",
NS_GET_IID(nsIBrowserInstance), (nsISupports**)&browser);
// precaution, do I really need to query it one more time?
if (NS_SUCCEEDED(rv)) rv = browser->QueryInterface(
NS_GET_IID(nsIBrowserInstance), (void**)&browser);
// and here I got the access violation exception:
if(NS_SUCCEEDED(rv)) rv = browser->GetContentDocShell(&docshell);
It seems that browser does not have this method...
Am I doing something wrong?
Could anyone tell me how to get existing nsIDocShell component?
And what is nsICacheManager that was mentioned in nsIServiceManager.h ?
Which components could be accessed this way?
Thanks for your help.
Sincerely,
Marius