Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNiraj Modi2015-05-11 07:06:37 +0000
committerNiraj Modi2015-05-11 07:06:37 +0000
commit7ce594b4bb9c7af0245cbdcabf2b4eb3444323e4 (patch)
tree1a4e0b700feb3cc25b4d5609f165b0cc1ef54214
parent22eda3424b32e37020f12c6b95e92e69781b0f9e (diff)
downloadeclipse.platform.swt-7ce594b4bb9c7af0245cbdcabf2b4eb3444323e4.tar.gz
eclipse.platform.swt-7ce594b4bb9c7af0245cbdcabf2b4eb3444323e4.tar.xz
eclipse.platform.swt-7ce594b4bb9c7af0245cbdcabf2b4eb3444323e4.zip
Bug 411719 - [Win32] UnsatisfiedLinkError: GREVersionRange_sizeof() on
Windows 64 while creating new Browser(MOZILLA) - Added comments in Mozilla class for this bug fix. Change-Id: I74ef8a41552134ba8560aa7aaa2293784cb6b950 Signed-off-by: Niraj Modi <niraj.modi@in.ibm.com>
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/browser/Mozilla.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/browser/Mozilla.java b/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/browser/Mozilla.java
index fd2144f8b4..d6f9c7a8f4 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/browser/Mozilla.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/browser/Mozilla.java
@@ -1937,6 +1937,12 @@ public Object getWebBrowser () {
return null;
}
+/**
+ * This method attempts to discover XULRunner and if found returns path of
+ * the mozilla library, else return empty string.
+ *
+ * @return string Mozilla path.
+ */
static String InitDiscoverXULRunner () {
/*
* Up to three XULRunner detection attempts will be made:
@@ -1953,8 +1959,10 @@ static String InitDiscoverXULRunner () {
try {
range = new GREVersionRange ();
} catch (NoClassDefFoundError e) {
+ /* Failed to discover XULRunner, return empty string. */
return "";
} catch (UnsatisfiedLinkError e) {
+ /* Failed to discover XULRunner, return empty string. */
return "";
}
byte[] bytes = MozillaDelegate.wcsToMbcs (null, GRERANGE_LOWER, true);

Back to the top