mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 22:01:30 +00:00
Should not be setting className to null if we get an exception.
This commit is contained in:
parent
53a1619128
commit
3b89687e72
@ -28,7 +28,7 @@ import org.mozilla.util.ParameterCheck;
|
||||
* This is a static class, it is neven instantiated.
|
||||
|
||||
*
|
||||
* @version $Id: BrowserControlCanvasFactory.java,v 1.2 1999/08/10 03:59:03 mark.lin%eng.sun.com Exp $
|
||||
* @version $Id: BrowserControlCanvasFactory.java,v 1.3 1999/08/12 21:29:15 mark.lin%eng.sun.com Exp $
|
||||
*
|
||||
* @see org.mozilla.webclient.test.EmbeddedMozilla
|
||||
|
||||
@ -86,10 +86,10 @@ public static BrowserControlCanvas newBrowserControlCanvas()
|
||||
Class.forName("sun.awt.windows.WDrawingSurfaceInfo");
|
||||
|
||||
if (win32DrawingSurfaceInfoClass != null) {
|
||||
className = "org.mozilla.webclient.win32.Win32MozWebShellCanvas";
|
||||
className = "org.mozilla.webclient.win32.Win32BrowserControlCanvas";
|
||||
}
|
||||
} catch (Exception e) {
|
||||
className = null;
|
||||
// Do nothing????
|
||||
}
|
||||
|
||||
try {
|
||||
@ -100,7 +100,7 @@ public static BrowserControlCanvas newBrowserControlCanvas()
|
||||
className = "org.mozilla.webclient.motif.MotifBrowserControlCanvas";
|
||||
}
|
||||
} catch (Exception e) {
|
||||
className = null;
|
||||
// Do nothing????
|
||||
}
|
||||
|
||||
if (className != null) {
|
||||
@ -135,7 +135,7 @@ public static void main(String [] args)
|
||||
Assert.setEnabled(true);
|
||||
Log.setApplicationName("BrowserControlCanvasFactory");
|
||||
Log.setApplicationVersion("0.0");
|
||||
Log.setApplicationVersionDate("$Id: BrowserControlCanvasFactory.java,v 1.2 1999/08/10 03:59:03 mark.lin%eng.sun.com Exp $");
|
||||
Log.setApplicationVersionDate("$Id: BrowserControlCanvasFactory.java,v 1.3 1999/08/12 21:29:15 mark.lin%eng.sun.com Exp $");
|
||||
|
||||
BrowserControlCanvas canvas = BrowserControlCanvasFactory.newBrowserControlCanvas();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user