Bug 178650

Summary: REGRESSION(r219675): Web Inspector: CommandLineAPI getEventListeners does not work
Product: WebKit Reporter: Joseph Pecoraro <joepeck>
Component: Web InspectorAssignee: Joseph Pecoraro <joepeck>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, inspector-bugzilla-changes, joepeck, sam, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: All   
OS: All   
Attachments:
Description Flags
[PATCH] Proposed Fix none

Description Joseph Pecoraro 2017-10-22 15:25:44 PDT
REGRESSION(r219675): Web Inspector: CommandLineAPI getEventListeners does not work

After refactoring the code had:

    if (m_domAgent)
        return;

Instead of:

    if (!m_domAgent)
        return;

---

Add a test, and modernize the results to match other browsers by including more information about the listeners.
Comment 1 Radar WebKit Bug Importer 2017-10-22 15:28:12 PDT
<rdar://problem/35116347>
Comment 2 Joseph Pecoraro 2017-10-22 15:29:03 PDT
Created attachment 324534 [details]
[PATCH] Proposed Fix
Comment 3 Joseph Pecoraro 2017-10-22 15:29:57 PDT
Found this by looking at static analyzer warnings in inspector code.
Comment 4 WebKit Commit Bot 2017-10-22 17:43:42 PDT
Comment on attachment 324534 [details]
[PATCH] Proposed Fix

Clearing flags on attachment: 324534

Committed r223826: <https://trac.webkit.org/changeset/223826>
Comment 5 WebKit Commit Bot 2017-10-22 17:43:44 PDT
All reviewed patches have been landed.  Closing bug.
Comment 6 Joseph Pecoraro 2017-10-22 18:35:27 PDT
Comment on attachment 324534 [details]
[PATCH] Proposed Fix

View in context: https://bugs.webkit.org/attachment.cgi?id=324534&action=review

> LayoutTests/inspector/console/command-line-api-getEventListeners.html:26
> +    InspectorTest.debug();

Oops, I'll remove this at some point. Its not harmful to land with this in it just generates unnecessary stderr.