How to call getEventListeners function without DevTools?

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

How to call getEventListeners function without DevTools?

Postby yes » Wed Nov 25, 2015 3:51 am

Implementation of getEventListeners is at InspectorDOMAgent::getEventListeners which is called from InspectedScriptHost::getEventListenersImpl which, in turn, can be accessed from an InjectedScriptManager using InjectedScriptManager::createForPage().

What I am trying to do is to call https://developer.chrome.com/devtools/docs/commandline-api#geteventlistenersobject without showing and preferably without loading the DevTools.

After opening DevTools as a hidden window, how can I send a message to its javascript context and get the results?
yes
Newbie
 
Posts: 3
Joined: Wed Nov 25, 2015 3:39 am

Re: How to call getEventListeners function without DevTools?

Postby magreenblatt » Wed Nov 25, 2015 12:28 pm

Why do you want to call getEventListeners?
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: How to call getEventListeners function without DevTools?

Postby yes » Thu Nov 26, 2015 3:56 am

I would like to expose getEventListeners method to the browser javascript context. It is normally visible only in DevTools context.
yes
Newbie
 
Posts: 3
Joined: Wed Nov 25, 2015 3:39 am

Re: How to call getEventListeners function without DevTools?

Postby yes » Wed Dec 02, 2015 8:27 am

Is it possible to invoke the getEventListeners method in this way?
yes
Newbie
 
Posts: 3
Joined: Wed Nov 25, 2015 3:39 am


Return to Support Forum

Who is online

Users browsing this forum: Google [Bot] and 26 guests