[Webkit-unassigned] [Bug 31607] New: WebScriptable protocol: valueForUndefinedKey: selector never gets called

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Nov 17 16:58:07 PST 2009


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

           Summary: WebScriptable protocol: valueForUndefinedKey: selector
                    never gets called
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
        OS/Version: Mac OS X 10.5
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: JavaScriptGlue
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: ejpbruel at gmail.com


In case we are accessing a property in Javascript by writing "obj.test", where
obj represents a Cocoa object implementing the WebScripting informal protocol,
the API reference states that:

"Additionally, the scripting environment can attempt any number of attribute
requests or method invocations that are not exported by your class. You can
manage these requests by overriding the setValue:forUndefinedKey: and
valueForUndefinedKey: methods from the key-value coding protocol."

The valueForUndefinedKey: method never seems to get called though.
setValue:forUndefinedKey: works fine for setting properties. So does
invokeUndefinedMethodFromWebScript:withArguments: for calling methods this way.
I therefore suspect that this is a bug in WebKit.

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