Accessing WebInspector.DebuggerDispatcher from web inspector extension

101 views
Skip to first unread message

gonchar...@gmail.com

unread,
Feb 25, 2013, 8:52:31 AM2/25/13
to google-chrome-...@googlegroups.com
Web inspector is implemented mainly in WebInspector namespace.
I need access to WebInspector.DebuggerDispatcher object from my own extension.

Is there any was to access it so i can extend it's functionality?

John J Barton

unread,
Feb 25, 2013, 12:55:09 PM2/25/13
to Alexander Gonchar, Google Chrome Developer Tools
Not using the chrome.devtools API. By design the extension has no access to the global 'window' object containing WebInspector. The extension is an iframe within the devtools.html window with a different security origin (the chrome extension's security origin).  

You could implement a client of the remote debug protocol over websockets or over chrome.debugger API. That would give you the same kind of info used by WebInspector.DebuggerDispatcher. You could also use the WebInspector front end code in a Web app and patch it as I do in my devtoolsExtended project, https://github.com/google/devtoolsExtended. To be sure, these options are riskier than normal devtools extensions.

jjb
 

--
You received this message because you are subscribed to the Google Groups "Google Chrome Developer Tools" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-chrome-develo...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages