Hi,

in my application I need the user to be able to turn off the browser
and turn it on again. I use the new embedding API wrapper class
MozView. Here is a simple example, which doesn't work for me.

//creating browser for the first time
MozView* pMV = new MozView;
pMV->CreateBrowser(...);
pMV->LoadURI("www.google.com");

//now the user decides, he/she wants to deactivate browser
delete pMV;

//and finally user wants to activate browser again
pMV = new MozView;
pMV->CreateBrowser(...);//this won't work as expected

////////////////////////////////////////////////////////////////////////////
the second CreateBrowser looks to execute well, no assertions.
sometimes it creates browser and shows message, that firefox is in
offline mode, sometimes it doesn't show anything.

I don't want to use show/hide feature, I need the browser terminate
and initiate it as it was in the beginning.

please let me know about possible solution. Thank you in advance.

Best regards, Martin
_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding

Reply via email to