hello everybody, my question is very easy: when dealing with popups or sites which open multiple windows, one will implement nsIWindowCreator, the CreateChromeWindow will be called, you create a new nsIWebBrowserChrome and return it. But should you also create a new nsIWebBrowser and connect it to the new nsIWebBrowserChrome ( via nsIWebBrowser::SetContainerWindow and nsIWebBrowserChrome::SetWebBrowser ) or the new nsIWebBrowserChrome is just "reassigned" to the same nsIWebBrowser? how do should I implement something similar to Firefox multiple tabs? each one as a pair of nsIWebBrowser/nsIWebBrowserChrome, or I just have to "switch" the active chrome window and keep the same nsIWebBrowser?
Or am I doing it completely wrong? My question arises from the fact that I am just returning a new nsIWebBrowserChrome, but I do not understand how to keep track of "sessions" (i.e. when a link opens a new instance of the browser on a completely new site). My nsIWebNavigation interface seems to act strangely, i.e. i can "go back" from a newly open site, which should be a new instance of the browser (and should not permit me to go back) Thanks everybody, Aaron Brancotti aka Babele Dunnit --- Aaron Brancotti Senior Software Architect SR Labs Srl http://www.srlabs.it _______________________________________________ dev-embedding mailing list [email protected] https://lists.mozilla.org/listinfo/dev-embedding
