[Webkit-unassigned] [Bug 206514] New: WebDriver screenshot ignores CSS transformations or WebGL content.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jan 20 14:49:33 PST 2020


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

            Bug ID: 206514
           Summary: WebDriver screenshot ignores CSS transformations or
                    WebGL content.
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebDriver
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: clopez at igalia.com
                CC: bburg at apple.com, cgarcia at igalia.com

Created attachment 388261

  --> https://bugs.webkit.org/attachment.cgi?id=388261&action=review

python script to reproduce the issue with selenium

When using the WebDriver screenshot feature to take a snapshoot of the WebView, the snapshot produced ignores CSS transformations or WebGL content

For example, taking a screenshot of any of this URLs, will produce an incorrect screenshot:

1) http://wpt.live/css/css-transforms/perspective-origin-001.html 
On the screen you only see a green square (test passes), but on the screenshot you see the red square (like if the test has failed)

2) https://webkit.org/blog-files/3d-transforms/poster-circle.html
On the screen you see a cylinder moving, but on the screenshot you see flat squares (no cylinder form)

3) https://webglsamples.org/aquarium/aquarium.html
On the screen you see an aquarium and fishes moving, but on the screenshot you don't see the aquarium or any fish (just a grey area)


This issue affects both Safari Driver and WebKitGTK WebDriver.

When using Chrome driver, the screenshot captures the expected content.

I'm attaching a simple script with python and selenium to reproduce the issue.

-- 
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/20200120/fb6054ef/attachment.htm>


More information about the webkit-unassigned mailing list