Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 335876 - [Browser] Support SWT#MOZILLA and SWT#WEBKIT styles
Summary: [Browser] Support SWT#MOZILLA and SWT#WEBKIT styles
Status: RESOLVED FIXED
Alias: None
Product: RAP
Classification: RT
Component: RWT (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: 1.4 M6   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-31 12:07 EST by Rüdiger Herrmann CLA
Modified: 2011-02-08 16:03 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.