Bug 22115
| Summary: | NPN_HasPropertyUPP and NPN_HasMethodUPP entries in NPNetscapeFuncs are NULL | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Kenneth Russell <kenneth.russell> |
| Component: | Plug-ins | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED FIXED | ||
| Severity: | Critical | CC: | andersca, kenneth.russell, swingler |
| Priority: | P2 | ||
| Version: | 528+ (Nightly build) | ||
| Hardware: | Mac | ||
| OS: | OS X 10.5 | ||
| URL: | https://jdk6.dev.java.net/nonav/plugin2/liveconnect/ArrayAccess.html | ||
Kenneth Russell
With the current nightly build of WebKit, the following entries in the NPNetscapeFuncs passed from the browser to plug-ins are NULL:
NPN_HasPropertyUPP hasproperty;
NPN_HasMethodUPP hasmethod;
This causes the new NPRuntime-based Java Plug-In to crash WebKit on the above test case. It relies on being able to query JavaScript objects for the presence of certain fields, including the "length" field of arrays.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Kenneth Russell
The following test case similarly crashes the browser:
https://jdk6.dev.java.net/nonav/plugin2/liveconnect/JavaJSTest.html
Anders Carlsson
Committed revision 38210.