Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGrant Gayed2012-01-10 20:29:13 +0000
committerGrant Gayed2012-01-10 20:31:41 +0000
commitc9bd1fa15de6e698115cdc36e7f63af25f01eda4 (patch)
treeea3a0336b868f3fea63103b82eccd39a9ca81f81 /bundles/org.eclipse.swt/Eclipse SWT WebKit
parenta83a3e50e9c85161e619c9b4d4bd27c45d10dab1 (diff)
downloadeclipse.platform.swt-c9bd1fa15de6e698115cdc36e7f63af25f01eda4.tar.gz
eclipse.platform.swt-c9bd1fa15de6e698115cdc36e7f63af25f01eda4.tar.xz
eclipse.platform.swt-c9bd1fa15de6e698115cdc36e7f63af25f01eda4.zip
Bug 368290 - [Browser] passing of JS booleans to java is failing
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT WebKit')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT WebKit/gtk/org/eclipse/swt/browser/WebKit.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT WebKit/gtk/org/eclipse/swt/browser/WebKit.java b/bundles/org.eclipse.swt/Eclipse SWT WebKit/gtk/org/eclipse/swt/browser/WebKit.java
index 467eb2515b..e9485dafe9 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT WebKit/gtk/org/eclipse/swt/browser/WebKit.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT WebKit/gtk/org/eclipse/swt/browser/WebKit.java
@@ -1960,7 +1960,7 @@ Object convertToJava (int /*long*/ ctx, int /*long*/ value) {
int type = WebKitGTK.JSValueGetType (ctx, value);
switch (type) {
case WebKitGTK.kJSTypeBoolean: {
- int result = WebKitGTK.JSValueToBoolean (ctx, value);
+ int result = (int)WebKitGTK.JSValueToNumber (ctx, value, null);
return new Boolean (result != 0);
}
case WebKitGTK.kJSTypeNumber: {

Back to the top