Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 343889 - Support xulrunner 2.0 so that the Browser component works
Summary: Support xulrunner 2.0 so that the Browser component works
Status: CLOSED DUPLICATE of bug 327696
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.6.2   Edit
Hardware: Other Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-26 14:12 EDT by CLA
Modified: 2011-04-28 09:48 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description CLA 2011-04-26 14:12:12 EDT
Build Identifier: Eclipse 3.6.2

Browser component does not work with xulrunner >= 2.0 on Linux. Is it possible to support this version please?

Reproducible: Always
Comment 1 Grant Gayed CLA 2011-04-27 14:41:26 EDT
For Eclipse 3.7 the default Browser renderer is WebKitGTK, which should be found on any Linux distro that's modern enough to only have a XULRunner with version >= 2.x.

Marking as a dup of bug 327696.

*** This bug has been marked as a duplicate of bug 327696 ***
Comment 2 CLA 2011-04-27 16:20:47 EDT
(In reply to comment #1)
> For Eclipse 3.7 the default Browser renderer is WebKitGTK, which should be
> found on any Linux distro that's modern enough to only have a XULRunner with
> version >= 2.x.
> 
> Marking as a dup of bug 327696.
> 
> *** This bug has been marked as a duplicate of bug 327696 ***

I downloaded Ubuntu 11.04, installed the latest nightly build of Eclipse 3.7 and no dice. Does an end user have to take extra steps to get this working?

And of course this begs the question...what about all those pre-3.7 Eclipse-based RCP apps out there?
Comment 3 CLA 2011-04-27 18:00:34 EDT
This is the stack trace I get on Ubuntu 11.04 with Eclipse Version: 3.7.0
Build id: I20110425-1800 when opening the Internal Web Browser View. Am I missing something?

No more handles [MOZILLA_FIVE_HOME='/usr/lib/xulrunner-addons'] (java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons: 
	/home/phillipus/Desktop/eclipse3.7/configuration/org.eclipse.osgi/bundles/155/1/.cp/libswt-mozilla-gtk-3730.so: libxpcom.so: cannot open shared object file: No such file or directory
	no swt-mozilla-gtk in java.library.path
	/home/phillipus/.swt/lib/linux/x86/libswt-mozilla-gtk-3730.so: libxpcom.so: cannot open shared object file: No such file or directory
	Can't load library: /home/phillipus/.swt/lib/linux/x86/libswt-mozilla-gtk.so
)
org.eclipse.swt.SWTError: No more handles [MOZILLA_FIVE_HOME='/usr/lib/xulrunner-addons'] (java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons: 
	/home/phillipus/Desktop/eclipse3.7/configuration/org.eclipse.osgi/bundles/155/1/.cp/libswt-mozilla-gtk-3730.so: libxpcom.so: cannot open shared object file: No such file or directory
	no swt-mozilla-gtk in java.library.path
	/home/phillipus/.swt/lib/linux/x86/libswt-mozilla-gtk-3730.so: libxpcom.so: cannot open shared object file: No such file or directory
	Can't load library: /home/phillipus/.swt/lib/linux/x86/libswt-mozilla-gtk.so
)
	at org.eclipse.swt.SWT.error(SWT.java:4303)
	at org.eclipse.swt.browser.Mozilla.initMozilla(Mozilla.java:1820)
	at org.eclipse.swt.browser.Mozilla.create(Mozilla.java:672)
	at org.eclipse.swt.browser.Browser.<init>(Browser.java:96)
	at org.eclipse.ui.internal.browser.BrowserViewer.<init>(BrowserViewer.java:225)
	at org.eclipse.ui.internal.browser.WebBrowserView.createPartControl(WebBrowserView.java:48)
Comment 4 CLA 2011-04-28 06:06:14 EDT
I'm afraid I'm finding this enormously frustrating. Even a morsel of a hint on how to get this working would be much appreciated.

The SWT FAQ says:

"In Eclipse/SWT 3.7 and newer the Browser attempts to use WebKitGTK for all SWT.NONE-style Browsers created on GTK. For this to succeed, WebKitGTK 1.2.0 or newer must be in the library load path. Examples of Linux distros that meet this requirement by default include Red Hat Enterprise Linux 6 and Ubuntu 10.04. Linux installations that do not meet this requirement will fall back to using Mozilla for SWT.NONE-style Browsers."

I'm using the 32-bit distro of Ubuntu 11.04. How do I set the "library load path" to "WebKitGTK 1.2.0 or newer"?
Comment 5 Grant Gayed CLA 2011-04-28 09:48:53 EDT
There shouldn't be any additional steps required.  There's a similar problem with the latest Fedora 15 beta, so I'm wondering if swt's attempt to use the latest WebKitGTK is failing for some reason.  We'll have a Fedora 15 beta available soon to investigate on, and it's likely that the problem there is the same problem that you're seeing.  To follow its progress see bug 343454.

A workaround that could be used in the meantime is to download and install ( https://developer.mozilla.org/en/XULRunner_1.9.2_Release_Notes ) a XULRunner release < 2.0 on your machine, such as XULRunner 1.9.2.x.