Closed Bug 1598727 Opened 5 years ago Closed 5 years ago

GeckoDriver/Marionette Screenshot Not Taking Fullpage Even With Full=true

Categories

(Remote Protocol :: Marionette, defect)

70 Branch
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1571424

People

(Reporter: matt, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36

Steps to reproduce:

If you run the WebDriver:TakeScreenshot command with default parameters other than full=true on this page: https://www.blueorigin.com/latest/gallery

You will get a screenshot that is only the height of the viewport. The width is the width of the viewport like expected, but the height will be just the viewport and not the full page height.

Hope this helps, happy to provide more info if needed.

Actual results:

The geckodriver output probably won't be helpful here, so I'm just going to describe this issue. Though here is the request that was made.

1574450485733 webdriver::server DEBUG -> GET /session/623573bc-cfe8-453d-96fc-134fa8351d0d/moz/screenshot/full

Expected results:

The screenshot height should have been larger than the viewport.

OS: Unspecified → Windows 10
Hardware: Unspecified → x86_64

Sorry I realized I could given better reproduce steps.

Geckodriver version: v0.26.0
Firefox version: 70.0.1 (64-bit)
Platform: Windows 10

  1. Navigate to: https://www.blueorigin.com/latest/gallery
  2. Send screenshot full command
  3. Observe returned png height is that of the viewport and the image is cutoff.

For full screenshots we take the bounding client rect of the document element which is for this website:

{"x":0,"y":0,"width":1265,"height":988,"top":0,"right":1265,"bottom":988,"left":0}

It would work when we would use the body.height and body.width here:
https://searchfox.org/mozilla-central/rev/a78233c11a6baf2c308fbed17eb16c6e57b6a2ac/testing/marionette/listener.js#1666-1667

Note that the specified page is huge and as such seem to cause a crash in GFX as reported on bug 1598731. We have to get this fixed first.

Depends on: 1598731

Actually this is a dupe of bug 1571424.

Status: UNCONFIRMED → RESOLVED
Closed: 5 years ago
No longer depends on: 1598731
OS: Windows 10 → All
Hardware: x86_64 → All
Resolution: --- → DUPLICATE
Product: Testing → Remote Protocol
You need to log in before you can comment on or make changes to this bug.