[Webkit-unassigned] [Bug 40425] Web Inspector: provide API for content scripts to interact with the inspector

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jul 27 10:46:49 PDT 2010


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





--- Comment #13 from Joseph Pecoraro <joepeck at webkit.org>  2010-07-27 10:46:48 PST ---
> webinspector.panels.onSelectionChanged
> Fired when an objects (script, resource, DOM element etc) is selected in the panel.

I don't see the usefulness of this. Wouldn't you know when someone is selected
in your own panel? Was this added to handle a specific use case?

Or maybe I'm misreading this and it means when an element is selected in a
native different Panel, like the Elements or Storage panel.


> webinspector.panels.onShown

There is an onShown but not an onHidden? If an inspector extension wants to do
something really wild, they may need to detect when a panel change is made.


> webinspector.consoleMessages

I think webInspector.console seems more appropriate. It would change the events
to "addMessage" and "onMessageAdded", but it opens the door to future console
related tasks.


> webinspector.consoleMessages.add(ConsoleMessage message)

Directly using the WebInspector.ConsoleMessage type is nice, but it means that
changing the internal ConsoleMessage type in the future could break extensions.
Should there be an intermediate representation for conversion?

This concern goes for all places where internal objects would be used directly.

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