WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
7917
JSObject in LiveConnect not working.
https://bugs.webkit.org/show_bug.cgi?id=7917
Summary
JSObject in LiveConnect not working.
David Carson
Reported
2006-03-22 11:12:48 PST
Calls from Applet using JSObject not working. The code below shows the applet calls: private void showMessage(String str) { JSObject root = JSObject.getWindow(HelloApplet.this); JSObject document = (JSObject)(root.getMember("document")); JSObject body =(JSObject)(document.getMember("body")); JSObject br = (JSObject)(document.call( "createElement", new Object[] { "br" })); body.call("appendChild", new Object[] { br}); JSObject text = (JSObject)(document.call( "createTextNode", new Object[] { str })); body.call("appendChild", new Object[] { text}); }
Attachments
Test page with Java jar file and source code.
(4.86 KB, application/octet-stream)
2006-03-22 11:20 PST
,
David Carson
no flags
Details
patch
(2.11 KB, patch)
2006-03-22 11:47 PST
,
David Carson
darin
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
David Carson
Comment 1
2006-03-22 11:20:07 PST
Created
attachment 7234
[details]
Test page with Java jar file and source code. For some reason, the test case can not be loaded from the local file system, it must be hosted on a web server. When loading from the local file system, the jar is not loaded. It is found, though, as the <applet> icon is different if the jar file is missing altogether.
David Carson
Comment 2
2006-03-22 11:47:21 PST
Created
attachment 7235
[details]
patch The wrong class name was being used when converting from the Java JSObject to the javascript object, and the wrong signature was being used for getting the FieldID, thus it never found it. Information about signatures used with GetFieldID (JNI call), see
http://www.cs.fit.edu/~ryan/java/language/jni.html
Darin Adler
Comment 3
2006-03-22 11:54:52 PST
Comment on
attachment 7235
[details]
patch This fix looks great! Can we get a test case for the "manual tests" directory?
David Kilzer (:ddkilzer)
Comment 4
2006-03-22 15:58:11 PST
(In reply to
comment #3
)
> Can we get a test case for the "manual tests" directory?
Can an http test be written for it, or does DumpRenderTree not do applets?
Darin Adler
Comment 5
2006-03-23 07:34:15 PST
(In reply to
comment #4
)
> Can an http test be written for it, or does DumpRenderTree not do applets?
We haven't been able to get DumpRenderTree working with Java.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug