Bug 77404 - [safari] Passing identicial JS objects to NP plugins results in new NPObject each time
Summary: [safari] Passing identicial JS objects to NP plugins results in new NPObject ...
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: Plug-ins (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified OS X 10.6
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-30 22:04 PST by duncantebbs
Modified: 2016-05-30 11:13 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description duncantebbs 2012-01-30 22:04:39 PST
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.

Observed with Safari 5.1.2 (6534.52.7) on OS X 10.6.  Under Windows (Windows 7, 64 bit, Safari 5.1.2(7534.52.7)) the same NPObject pointer seems to be passed to the plugin.
Comment 1 Anders Carlsson 2016-05-30 11:13:51 PDT
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.