Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 335876

Summary: [Browser] Support SWT#MOZILLA and SWT#WEBKIT styles
Product: [RT] RAP Reporter: RĂ¼diger Herrmann <ruediger.herrmann>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3    
Version: unspecified   
Target Milestone: 1.4 M6   
Hardware: All   
OS: All   
Whiteboard:

Description RĂ¼diger Herrmann CLA 2011-01-31 12:07:05 EST
The browser widget in SWT accepts the style flags MOZILLA and WEBKIT. If the runtime environment is not suitable for running either of the browsers an exception is thrown.
In a similary way, RWT could provide these flags and raise an exception if they are specified.
Comment 1 Ivan Furnadjiev CLA 2011-02-08 04:58:06 EST
In case of SWT.MOZILLA and SWT.WEBKIT style flags now Browser throws an SWTError in the same way as in SWT. Fixed in CVS HEAD.
Comment 2 Ralf Sternberg CLA 2011-02-08 15:21:01 EST
I can't find the place in the SWT source code where the exception is thrown. Can you give me a pointer?
Comment 3 Ivan Furnadjiev CLA 2011-02-08 15:34:21 EST
Look at Browser ctor, BrowserFactory().createWebBrowser. The SWTError is thrown there.
Comment 4 Ralf Sternberg CLA 2011-02-08 16:03:51 EST
Got it. In GTK, there is no error thrown in this method, but it's hidden in the Mozilla/Webkit/XXX #create() method. Thanks.