[webkit-dev] WebScripting protocol: valueForUndefinedKey: never gets called

Geoffrey Garen ggaren at apple.com
Tue Nov 17 18:01:15 PST 2009


Hi Eddy.

> Sure, I'll file a bug report for you.

Thanks!

> About your workaround though: wouldn't invokeUndefinedMethodFromWebScript:withArguments:
> only be called when the user tries to call a method that is not explicitly exposed to Javascript?

Yes. 

To clarify, I think that the simple fact of responding to the selector invokeUndefinedMethodFromWebScript:withArguments: will start making valueForUndefinedKey: work. I'm not saying that invokeUndefinedMethodFromWebScript:withArguments: needs to do anything interesting. It can be empty. (That's my guess from looking at the code, anyway. Worth a shot.)

Geoff


More information about the webkit-dev mailing list