Hi all, my original objective was to implement a GoBack which I can call from a process outside mozilla.
So I implemented a component which creates a Windows-Window with a unique classname. The WndProc of this window listens for special messages and should execute the wished mozilla-functions. So far, so good - the component is running, but I'm having some trouble with calling GoBack. I tried it with nsIWindowMediator::GetMostRecentWindow and then a call to the nsIDOMWindowInternal::Back which fails (seems to have wrong docshell) :-( After that I debugged nsDocShell::GoBack (breakpoint in it and pressing Back-button in mozilla) and found that this was called from an eventhandler written in java, probably nsnavigator.js. So I tried it with java script (JS_CompileXXX and JS_ExecuteXXX), but I can't get the actual document, thus I can't get nsIWebNavigation :-( Is there any way to get to nsIWebNavigation::GoBack, if you're neither the app of the mozilla-plugin nor (the other way around) embedded in the actual document ? Any help very appreciated. Thanks
