[Webkit-unassigned] [Bug 61427] Web Inspector: improve output of console.log(object)

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon May 30 04:54:42 PDT 2011


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





--- Comment #6 from Yury Semikhatsky <yurys at chromium.org>  2011-05-30 04:54:42 PST ---
(In reply to comment #3)
> I wonder why do we need a backend written in C++ to get all keys of an object? It seems feasible to do in pure JS https://gist.github.com/367080/#L93. Is it all about performance?

The keys are collected in JavaScript (see Source/WebCore/inspector/InjectedScriptSource.js) while C++ bindigs are used to get access from the injected script to some parts of WebCore. Also transport for serialized JSON messages between backend and frontend is implemented in C++.

As Pavel said, in this particular case you should be able to achieve the goal using only JavaScript part. The protocole already supports evaluation in the context of inspected page and evaluation on an object. This should be enough for collecting keys.

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