webBrowser is a ScopedPointer, btw. This gives me a memory leak when I close the app unless I comment out the addAndMakeVisible.
2-When I try going into kiosk mode with the WebBrowserComponent added and made visible, I get a black screen. Here is what I tried. What am I doing wrong?
void initialise (const String& commandLine) override
{
// This method is where you should put your application's initialisation code..
mainWindow = new MainWindow (getApplicationName());
Desktop::getInstance().setKioskModeComponent(mainWindow->getTopLevelComponent(), true); }
Taking a hint from http://www.juce.com/forum/topic/kiosk-mode-secondary-window, I disabled the native title bar (comment out setUsingNativeTitleBar) and now full screen with Web Browser Component works fine.
The memory leak looks like a false alarm to me. If it was a juce object then you'd get a dump from LeakedObjectDetector, so since it's just a handful of bytes, it's probably just some tiny bit of memory that the web browser itself is leaking.