vrobi at vasvari.com
Mon Dec 6 10:35:53 PST 2010
conversion done by objc_runtime.mm:convertValueToObjcObject() fails.
Using the latest version of Webkit in gdb I traced
the problem back to convertValueToObjcObject(). In this function
findRootObject() is called:
RefPtr<RootObject> rootObject = findRootObject(exec->dynamicGlobalObject());
In my case this function returns NULL, therefore the next line simply
returns NULL, hence my objc object gets null as its property.
The JSValue-value variable passed into convertValueToObjcObject is
perfectly fine, it has the string data I want. Still,
because rootObject comes up NULL my string is discarded.
Questions: is it a legitimate situation that rootObject is NULL? Is it
produces this situation? In that case I guess this is a bug in
WebCore. Turns out in this case rootObject is not needed, execState
and the JSValue are perfectly enough to set the value in the objc
object. I was able to get that working with a simple patch.
If rootObject being NULL is an abnormal situation, then it should be
us is really complex, we have not been able to isolate what causes our
I checked bugzilla, there are no bugs for this that I could find.
Any help is appreciated.
More information about the webkit-help