Project: SWT
Bug 226369 [Browser] Provide a way to know which rendering is used
Reported: 2008-04-09 16:42:56 | Status: resolved fixed

Build ID: 3.4M6 We pilot the browser with Javascript so we need to know the rendering to take the differences into account. We can achieve this distinction with a mix of SWT.getPlatform() and browser.getStyle(). However, it would be much better to have a clear way to know the rendering, something like "Browser.getBrowserType()" which would return SWT.IE, SWT.MOZILLA, SWT.SAFARI, etc.

Files changed in fix:
bundles/org.eclipse.swt/Eclipse SWT Browser/carbon/org/eclipse/swt/browser/Safari.java bundles/org.eclipse.swt/Eclipse SWT Browser/cocoa/org/eclipse/swt/browser/Safari.java bundles/org.eclipse.swt/Eclipse SWT Browser/common/org/eclipse/swt/browser/Browser.java bundles/org.eclipse.swt/Eclipse SWT Browser/common/org/eclipse/swt/browser/WebBrowser.java bundles/org.eclipse.swt/Eclipse SWT Browser/forms/org/eclipse/swt/browser/IE.java bundles/org.eclipse.swt/Eclipse SWT Browser/photon/org/eclipse/swt/browser/Voyager.java bundles/org.eclipse.swt/Eclipse SWT Browser/win32/org/eclipse/swt/browser/IE.java bundles/org.eclipse.swt/Eclipse SWT Browser/wpf/org/eclipse/swt/browser/IE.java bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/browser/Mozilla.java