[Webkit-unassigned] [Bug 127304] Add a convenience method to unregister remote object.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jan 20 13:53:27 PST 2014


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





--- Comment #4 from Yongjun Zhang <yongjun_zhang at apple.com>  2014-01-20 13:50:59 PST ---
(In reply to comment #2)
> FWIW, I do think this API is cumbersome because it requires the caller to pass a WKRemoteObjectInterface, which it typically gets from +remoteObjectInterfaceWithProtocol:. I wonder if there can be methods that take a Protocol instead of a WKRemoteObjectInterface.

+remoteObjectInterfaceWithProtocol:. I wonder if there can be methods that take a Protocol instead of a WKRemoteObjectInterface.

The problem with +remoteObjectInterfaceWithProtocol: is that it creates a new WKRemoteObjectInterface* object every time for the same Protocol.  That means we will hit assertion in

 - (void)unregisterExportedObject:(id)object interface:(WKRemoteObjectInterface *)interface

since it is different than the interface argument used on registering.   For now, the only way to get around this is to save interface on the caller and use that exact object on both registering and unregistering.

-- 
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