[Webkit-unassigned] [Bug 126121] New: The JavaScriptCore API ignores dynamically created protocols
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sat Dec 21 12:32:46 PST 2013
https://bugs.webkit.org/show_bug.cgi?id=126121
Summary: The JavaScriptCore API ignores dynamically created
protocols
Product: WebKit
Version: 528+ (Nightly build)
Platform: Unspecified
OS/Version: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: JavaScriptCore
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: markvjal at gmail.com
Created an attachment (id=219854)
--> (https://bugs.webkit.org/attachment.cgi?id=219854&action=review)
Example of dynamically generated protocol ignored by JavaScriptCore
I would like to use a dynamically generated protocol as my JSExport sub-protocol for interacting with JavaScriptCore.
However JavaScriptCore ignores dynamically generated protocols. Attached is a snippet which shows the behaviour when the protocol is statically defined, and when it is dynamically defined.
The "hello" method is only called when the protocol is statically defined.
I have tracked down the issue to the private Objective-C runtime method _protocol_getMethodTypeEncoding() which returns null if the protocol method has been dynamically defined.
Said method is extensively used in the ObjCCallbackFunction.mm file. A solution, if possible, would be to use the method_getTypeEncoding() method which correctly outputs the type encoding for both dynamically and statically generated protocol methods.
--
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