Summary: | NPAPI: === returns false for identical NPObjects returned from a plugin. | ||
---|---|---|---|
Product: | WebKit | Reporter: | Jeremy Moskovich <playmobil> |
Component: | Plug-ins | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED INVALID | ||
Severity: | Normal | CC: | andersca, ap, duncantebbs, michaelbraithwaite, tulrich, zwarich |
Priority: | P2 | Keywords: | InRadar |
Version: | 528+ (Nightly build) | ||
Hardware: | Mac | ||
OS: | OS X 10.5 |
Description
Jeremy Moskovich
2008-08-06 09:23:02 PDT
Correction == returns false as well. See https://bugs.webkit.org/show_bug.cgi?id=20305 for specific repro steps. Link to Chromium bug w/ specific repro steps: http://code.google.com/p/chromium/issues/detail?id=3786 Another Chrome bug on the same === failing issue has a recent fix for it. See http://code.google.com/p/chromium/issues/detail?id=5751 The problem appears to exist in the other direction too, i.e. when passing objects from JS to the plugin. var a = {}; plugin.f(a, a); The plugin sees an argument list containing two different NPObject pointers. On Firefox and Chrome, the same NPObject pointer appears twice in the list, allowing the plugin to test whether the arguments are the same. This bug is in a pretty much useless state. Is it about Chrome or Safari, WebKit1 or WebKit2? I've created a new bug for the JS -> plugin direction (which was under Safari) https://bugs.webkit.org/show_bug.cgi?id=77404 I think this works with WebKit2. If it doesn't work, we're not likely to fix it - our plug-in code is in maintenance mode only. |