Closed Bug 634729 Opened 13 years ago Closed 5 years ago

Create API to allow addons to augment the console API

Categories

(DevTools :: Console, enhancement, P5)

enhancement

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: ddahl, Unassigned)

Details

(Whiteboard: [console-2][jetpack])

In discussions with Firebug team we noted that we need to create an API for Firebug and other extensions to add additional console properties/API methods.

perhaps something like: 

devtools.console.addMethod({ name: 'debug', 
                             function myCustomDebug(){}
                           });
Whiteboard: [console-1]
Whiteboard: [console-1] → [console-2]
Component: Developer Tools → Developer Tools: Console
Filter on TARDIS.
Priority: -- → P3
Whiteboard: [console-2] → [console-2][jetpack]
Severity: normal → enhancement
Product: Firefox → DevTools
Harald, i suppose this is something we don't want anymore, but want to check with you before closing this.
Flags: needinfo?(hkirschner)
Priority: P3 → P5
As the Console API is standardized[1] now, I think it doesn't make much sense to extend it, but it may be worth allowing to extend the Command Line API, i.e. add new functions like copy() or (probably the better syntax to avoid conflicts) commands like :screenshot. What do you think?

Sebastian

[1] https://console.spec.whatwg.org/
A content-exposed API doesn't make much sense atm. We are considering extension APIs for tools to hook into Console, which would be a different bug though.
Status: NEW → RESOLVED
Closed: 5 years ago
Flags: needinfo?(hkirschner)
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.