[Webkit-unassigned] [Bug 33360] Web Inspector: Console-invoked ObjC methods lose their string parameters

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Nov 3 10:05:12 PDT 2011


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


Rémy SAISSY <remy.saissy at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |remy.saissy at gmail.com




--- Comment #6 from Rémy SAISSY <remy.saissy at gmail.com>  2011-11-03 10:05:11 PST ---
(In reply to comment #5)
> Mark, sorry I didn't include an example.  Thanks for running with it and putting together the patch for easily reproducing it.

Hi,
I've attached a patch for this issue. It applies to WebCore/bridge/objc/objc_utility.mm.

I was also not able to find the root cause but I've found that it has something to do with RootObject initialization.
Indeed, the call to findRootObject() in objc_utility.mm returns nil whereas it should return a valid pointer since the conversion code is in _convertValueToObjcValue:.

I've also found that - (void)setValue:(id)value forKey:(NSString *)key in bindings/objc/WebScriptObject.mm
uses a rootObject to add the webscript. Maybe an initialization is missing here.

Hope this helps,
Rémy

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