Closed Bug 1571659 Opened Last month Closed Last month

Simplify the code for taking full screenshots


(Testing :: Marionette, defect, P1)

Version 3


(firefox69 unaffected, firefox70 fixed)

Tracking Status
firefox69 --- unaffected
firefox70 --- fixed


(Reporter: whimboo, Assigned: whimboo)



(2 files)

As just noticed on bug 1571341, my patch from bug 1377335 caused a regression so that full screenshots don't work anymore. Any content outside of the current viewport actually gets clipped (and replaced with a gray area).

So there is a strange behavior I cannot get fixed with bug 1377335 still in the tree. As such I voted for a backout. Once we switched over to drawSnapshot() we can try again to get this working. See also bug 1571341 which is the blocker for that.

Instead I will use this bug to improve the screenshot logic for fullscreen, which is currently kinda confusing and hard to follow. Also I will add a comment along the broken code to cover the latest investigation.

Keywords: regression
No longer regressed by: 1377335
Summary: Capture code shouldn't set DRAWWINDOW_DRAW_VIEW flag for full screenshots → Simplify the code for taking full screenshots

The patch makes the code for handling screenshots in the driver and
listener module easier to understand. Also it sets the default values
for optional arguments once, which doesn't require duplicated code
for the listener anymore.

Further there was a bug which treated the "full" parameter with a
higher priority as an element, if both are defined.

Pushed by
[marionette] Simplify logic for fullscreen screenshots. r=webdriver-reviewers,ato
[marionette] Explain why certain flags for drawWindow() cannot be used right now. r=webdriver-reviewers,jgraham
Closed: Last month
Resolution: --- → FIXED
Target Milestone: --- → mozilla70
You need to log in before you can comment on or make changes to this bug.