[Webkit-unassigned] [Bug 237208] New: Web Inspector: `console.screenshot` like API that returns image object

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Feb 25 06:37:21 PST 2022


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

            Bug ID: 237208
           Summary: Web Inspector: `console.screenshot` like API that
                    returns image object
           Product: WebKit
           Version: Safari 15
          Hardware: All
                OS: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Web Inspector
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: catlan at letteropener.com
                CC: inspector-bugzilla-changes at group.apple.com

We would be interested in a API like `console.screenshot` that would return an image object instead of displaying the image inaccessible on the console.

Our Safari Web Extension allows users to send HTML or CSS to Kaleidoscope, for a visual text comparison. With the current API we are able to send the HTML or computed CSS of an element via context menu action to Kaleidoscope. We also provide a javascript function, so developers can send any textual content to the app over the Web Inspector Console Command Line: 

> ksdiff($0.innerHTML)

It would be great if we could also provide image comparison in a similar manner like:

> ksdiff(inspector.screenshot($0))

-- 
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/20220225/dd60f1f4/attachment-0001.htm>


More information about the webkit-unassigned mailing list