WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
48775
Both the WebProcessConnection and PluginProcessConnection should have NPRemoteObjectMaps
https://bugs.webkit.org/show_bug.cgi?id=48775
Summary
Both the WebProcessConnection and PluginProcessConnection should have NPRemot...
Anders Carlsson
Reported
2010-11-01 13:18:58 PDT
Both the WebProcessConnection and PluginProcessConnection should have NPRemoteObjectMaps
Attachments
Patch
(16.88 KB, patch)
2010-11-01 13:23 PDT
,
Anders Carlsson
aroben
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Anders Carlsson
Comment 1
2010-11-01 13:23:29 PDT
Created
attachment 72545
[details]
Patch
Adam Roben (:aroben)
Comment 2
2010-11-01 13:29:51 PDT
Comment on
attachment 72545
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=72545&action=review
> WebKit2/Shared/Plugins/NPRemoteObjectMap.cpp:57 > +uint64_t NPRemoteObjectMap::registerNPObject(NPObject* npObject) > +{ > + uint64_t npObjectID = generateNPObjectID(); > + > + OwnPtr<NPObjectMessageReceiver> npObjectMessageReceiver = NPObjectMessageReceiver::create(npObject); > + m_registeredNPObjects.set(npObjectID, npObjectMessageReceiver.leakPtr());
I'm not sure the local variable really helps here. It doesn't seem like this function will do the right thing if the same npObject is passed in twice.
> WebKit2/Shared/Plugins/NPRemoteObjectMap.h:33 > +#include <wtf/HashMap.h> > #include <wtf/Noncopyable.h> > +#include <WebCore/npruntime.h>
ASCII order please!
> WebKit2/Shared/Plugins/NPRemoteObjectMap.h:42 > +class NPObjectProxy; > +class NPObjectMessageReceiver;
Here too!
> WebKit2/Shared/Plugins/NPRemoteObjectMap.h:53 > + // Creates an NPObjectProxy wrapper for the remote object with the given remote object ID. > + NPObjectProxy* getOrCreateNPObjectProxy(uint64_t remoteObjectID); > + > + uint64_t registerNPObject(NPObject*);
No comment here? This function seems at least as mysterious as getOrCreateNPObjectProxy.
Eric Seidel (no email)
Comment 3
2010-12-14 01:47:06 PST
Curious what the status is here? I assume this was landed?
Anders Carlsson
Comment 4
2010-12-14 09:11:27 PST
Committed
r71051
: <
http://trac.webkit.org/changeset/71051
>
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