[Webkit-unassigned] [Bug 176766] New: Web Inspector: Implement `queryObjects` Command Line API

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Sep 11 21:28:29 PDT 2017


            Bug ID: 176766
           Summary: Web Inspector: Implement `queryObjects` Command Line
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: All
                OS: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Web Inspector
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: joepeck at webkit.org
                CC: fpizlo at apple.com,
                    inspector-bugzilla-changes at group.apple.com,
                    mark.lam at apple.com, sbarati at apple.com,
                    utatane.tea at gmail.com, webkit at devinrousso.com

Chrome DevTools just introduced a `queryObjects` Command Line API:

> Call queryObjects(Constructor) from the Console to return an array of objects
> that were created with the specified constructor. For example:
>   * queryObjects(Promise). Returns all Promises.
>   * queryObjects(HTMLElement). Returns all HTML elements.
>   * queryObjects(foo), where foo is a function name. Returns all objects that were instantiated via new foo().

Example in action:

This would be very useful for developers. I often find myself in the situation where I want to find all the objects of a particular class, knowing that there will be (or should be) just a few instances.

You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20170912/fa4db5fb/attachment.html>

More information about the webkit-unassigned mailing list