[Webkit-unassigned] [Bug 57859] Add implementations of JavaInstance, JavaClass, JavaField and JavaMethod that simply proxy calls to a listener.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Apr 7 07:31:11 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=57859





--- Comment #9 from Andrei Popescu <andreip at google.com>  2011-04-07 07:31:11 PST ---
(In reply to comment #8)
> > What you need seems to be implementing remote objects in Java, which is OK, but
> > they don't need to be JavaObjects on WebCore side.
> I considered an approach like this. Rather than use WebCore's JavaInstance etc, we could expose an injected NPAPI object directly to the embedder.
> 
> The advantage of going though JavaInstance is that we can re-use all of the existing JavaScript-Java conversions already in WebCore. Exposing an NPAPI object to the embedder would mean re-implementing all of this logic for each platform. Similarly, JavaInstance provides a common interface for both JSC and V8.

This makes sense to me given that re-writing the conversion logic can be quite an error-prone process. If Alexey has no objections to continuing with this approach, this change looks otherwise fine to me.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list