Project: SWT
Bug 54973 [browser] Default WindowEvent to handle normal window open case - feature request
Reported: 2004-03-16 12:00:42 | Status: resolved fixed

In the documenation for WindowEvent is about 50-lines of code that is noted as this is the way "..are typically handled". This makes an HTML link that opens another window such as &lt;a href="...url.." target="_blank"&gt; work. Since this is the typical use (as stated in the docs), why not make this the default behavior? It's a lot of code to get in and get right. What I actually want is for the browser to handle _blank target by opening the system browser, as it would if I loaded the HTML into IE, not to open another SWT browser. I was not able to get this to work.

Files changed in fix:
bundles/org.eclipse.swt/Eclipse SWT Browser/carbon/org/eclipse/swt/browser/Browser.java bundles/org.eclipse.swt/Eclipse SWT Browser/common/org/eclipse/swt/browser/OpenWindowListener.java bundles/org.eclipse.swt/Eclipse SWT Browser/common/org/eclipse/swt/browser/WindowEvent.java bundles/org.eclipse.swt/Eclipse SWT Browser/motif/org/eclipse/swt/browser/WindowCreator.java bundles/org.eclipse.swt/Eclipse SWT Browser/mozilla/org/eclipse/swt/browser/WindowCreator.java bundles/org.eclipse.swt/Eclipse SWT Browser/photon/org/eclipse/swt/browser/Browser.java bundles/org.eclipse.swt/Eclipse SWT Browser/win32/org/eclipse/swt/browser/Browser.java