New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 336472 link

Starred by 0 users

Issue metadata

Status: Fixed
Owner:
Last visit > 30 days ago
Closed: Jan 2014
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 2
Type: Bug



Sign in to add a comment

Cannot get event listeners on window object

Project Member Reported by chrisq@google.com, Jan 21 2014

Issue description

Chrome Version       : 32.0.1700.77

What steps will reproduce the problem?
1. Open developer console
2. Type "getEventListeners(window)"
3. Hit return

What is the expected result?
An object should be returned as described here:
https://developers.google.com/chrome-developer-tools/docs/commandline-api#geteventlistenersobject

What happens instead of that?
The function returns undefined.

Please provide any additional information below. Attach a screenshot if
possible.

UserAgentString: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1700.77 Safari/537.36



 
Labels: Hotlist-Google
Labels: Cr-Platform-DevTools Cr-Platform-DevTools-JavaScript
Owner: aandrey@chromium.org
Status: Assigned
Project Member

Comment 3 by bugdroid1@chromium.org, Jan 24 2014

The following revision refers to this bug:
    http://src.chromium.org/viewvc/blink?view=rev&rev=165726

------------------------------------------------------------------------
r165726 | aandrey@chromium.org | 2014-01-24T09:29:45.304462Z

Changed paths:
   M http://src.chromium.org/viewvc/blink/trunk/Source/core/inspector/InspectorDOMAgent.cpp?r1=165726&r2=165725&pathrev=165726
   M http://src.chromium.org/viewvc/blink/trunk/Source/core/events/EventTarget.cpp?r1=165726&r2=165725&pathrev=165726
   M http://src.chromium.org/viewvc/blink/trunk/Source/bindings/v8/custom/V8InjectedScriptHostCustom.cpp?r1=165726&r2=165725&pathrev=165726
   M http://src.chromium.org/viewvc/blink/trunk/LayoutTests/inspector/console/command-line-api-getEventListeners-expected.txt?r1=165726&r2=165725&pathrev=165726
   M http://src.chromium.org/viewvc/blink/trunk/Source/core/inspector/InjectedScriptHost.cpp?r1=165726&r2=165725&pathrev=165726
   M http://src.chromium.org/viewvc/blink/trunk/Source/core/inspector/InspectorDOMAgent.h?r1=165726&r2=165725&pathrev=165726
   M http://src.chromium.org/viewvc/blink/trunk/Source/core/events/EventTarget.h?r1=165726&r2=165725&pathrev=165726
   M http://src.chromium.org/viewvc/blink/trunk/Source/core/inspector/InjectedScriptHost.h?r1=165726&r2=165725&pathrev=165726
   M http://src.chromium.org/viewvc/blink/trunk/LayoutTests/inspector/console/command-line-api-getEventListeners.html?r1=165726&r2=165725&pathrev=165726
   M http://src.chromium.org/viewvc/blink/trunk/Source/core/inspector/InjectedScriptHost.idl?r1=165726&r2=165725&pathrev=165726

DevTools: Make getEventListeners() of Console API work for window.

BUG= 336472 
R=yurys

Review URL: https://codereview.chromium.org/145133008
------------------------------------------------------------------------
Status: Fixed

Sign in to add a comment