forked from burg/timelapse
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reviewed by Darin, landed by Anders. Fix for: http://bugs.webkit.org/show_bug.cgi?id=13142 The previous fix http://bugs.webkit.org/show_bug.cgi?id=12636 introduced new JNIType to enum in jni_utility.h This is a problem on the Mac as it seems that the JNIType enum is also used in the JVM, it is used to specify the return type in jni_objc.mm Corrected the fix by moving type to the end, and changing jni_objc.mm to convert the new type to an old compatible type. * bindings/jni/jni_objc.mm: (KJS::Bindings::dispatchJNICall): * bindings/jni/jni_utility.h: WebCore: Reviewed by Darin, landed by Anders. Manual test case for http://bugs.webkit.org/show_bug.cgi?id=13142 * manual-tests/liveconnect-applet-get-boolean.html: Added. * manual-tests/resources/CheckerApplet.class: Added. * manual-tests/resources/CheckerApplet.java: Added. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@20502 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
andersca
committed
Mar 27, 2007
1 parent
7f11a58
commit 8a51861
Showing
7 changed files
with
68 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<html> | ||
<body><applet code="CheckerApplet.class" name="Checker" codebase="resources"> | ||
Unable to load applet.</applet> | ||
This tests retrieving a boolean value from a Java class using javascript. It tests the return value. The return value should be true.<br> | ||
<input type="button" name="test" value="Read applet" onClick="alert('return value: '+document.Checker.checkVersion())"/> | ||
</body> | ||
<html> |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import java.applet.Applet; | ||
import java.awt.Color; | ||
import java.awt.Component; | ||
|
||
public class CheckerApplet extends Applet | ||
{ | ||
|
||
public boolean checkVersion() | ||
{ | ||
return true; | ||
} | ||
|
||
public void start() | ||
{ | ||
setBackground(new Color(255, 255, 255)); | ||
} | ||
|
||
public CheckerApplet() | ||
{ | ||
} | ||
} |