[Webkit-unassigned] [Bug 65620] New: +isKeyExcludedFromWebScript from the WebScript protocol is not passing a valid name string
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Aug 3 08:10:21 PDT 2011
https://bugs.webkit.org/show_bug.cgi?id=65620
Summary: +isKeyExcludedFromWebScript from the WebScript
protocol is not passing a valid name string
Product: WebKit
Version: 528+ (Nightly build)
Platform: Macintosh Intel
OS/Version: Mac OS X 10.6
Status: UNCONFIRMED
Severity: Major
Priority: P2
Component: WebKit API
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: self at mattmower.com
I am using the WebScript protocol so that Javascript code can query my Cocoa objects.
I pass an array of objects to Javascript via callWebScriptMethod:withArguments:
In those objects I implement
+ (BOOL)isKeyExcludedFromWebScript:(const char *)property {
NSLog( @"isKeyExcludedFromWebScript:%s", property );
if( strcmp( property, "puid" ) == 0 ) {
return NO;
}
return YES;
}
and I can see this method being called, however in all cases the "property" is a string like "_cd_bits_0x2009ee220".
Here you can see the result of my activity in the WebKit console (ss_post is a reference to one of the objects I am passing across to JS land):
>> ss_post['foo']
>> undefined
>> ss_post['bar']
>> undefined
2011-08-03 16:04:32.462 NetFish[52819:a0f] isKeyExcludedFromWebScript:_cd_bits_0x2009ee220
2011-08-03 16:04:32.462 NetFish[52819:a0f] isKeyExcludedFromWebScript:_cd_bits_0x2009ee220
2011-08-03 16:04:37.006 NetFish[52819:a0f] isKeyExcludedFromWebScript:_cd_bits_0x2009ee220
2011-08-03 16:04:37.007 NetFish[52819:a0f] isKeyExcludedFromWebScript:_cd_bits_0x2009ee220
Note that, not only is it not passing "foo" and "bar" back to Objective-C for testing but the string that is passed "_cd_bits_0x2009ee220" is the same in both cases, i.e. no matter what key is tested the same odd string gets passed to my Objective-C implementation of the protocol methods.
Matt
--
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