}
});
try {
m_browser = new Browser(m_shell, SWT.MOZILLA);
} catch (Throwable e) {
throw new HostedModeException(HostedModeException.LINUX_BROWSER_ERROR, e);
}
try {
Field webBrowserField = m_browser.getClass().getDeclaredField("webBrowser");
webBrowserField.setAccessible(true);
m_webBrowser = webBrowserField.get(m_browser);
m_isBrowser33 = m_webBrowser.getClass().getName().indexOf("Mozilla") != -1;
hackOnStateChange();
} catch (Throwable e) {
throw new HostedModeException(HostedModeException.LINUX_GENERAL_INIT_ERROR, e);
}
String libname = "gwt-ll";
try {
System.loadLibrary(libname);
} catch (Throwable e) {
throw new HostedModeException(HostedModeException.NATIVE_LIBS_LOADING_ERROR,
e,
new String[]{libname});
}
m_browser.addProgressListener(new ProgressListener() {
public void completed(ProgressEvent event) {