[Webkit-unassigned] [Bug 199308] New: Web Inspector: print the target of `console.screenshot` last so the target is the closest item to the image

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jun 27 20:21:37 PDT 2019


https://bugs.webkit.org/show_bug.cgi?id=199308

            Bug ID: 199308
           Summary: Web Inspector: print the target of
                    `console.screenshot` last so the target is the closest
                    item to the image
           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: drousso at apple.com
                CC: inspector-bugzilla-changes at group.apple.com

Right now, evaluating

```
   console.screenshot(document, "test", 1);
```

will log a message to the console with `#document`, `"test"`, and `1`, all of which are printed on different lines, togglable by a disclosure triangle.

The ideal situation would be to have `"test"` and `1` logged on the same line, and then have `#document` in the disclosure after that.  This way, you can "label" your images (e.g. `console.screenshot(document.images[1], "second image");`), as well as provide other data.

If the only argument was the target, it should print as if it was `console.log(target);` (no disclosure triangle).

If there are no arguments to `console.screenshot`, it should print the text "Viewport"` before the image.

-- 
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/20190628/cea4ca34/attachment.html>


More information about the webkit-unassigned mailing list