Closed Bug 1616932 Opened 4 years ago Closed 4 years ago

"WebDriver:Print" ends up adding extra margins to the document

Categories

(Remote Protocol :: Marionette, defect, P3)

Version 3
defect

Tracking

(firefox75 fixed)

RESOLVED FIXED
mozilla75
Tracking Status
firefox75 --- fixed

People

(Reporter: jgraham, Assigned: jgraham)

References

Details

Attachments

(1 file)

Gecko has the concept of the unprintable area, which is effectively a system-specific additional margin added to printed documents by default. I don't think it makes sense to add this to documents generated with the marionette print command since PDFs don't have an unprintable region, and authors should expect the margin to be what they specify and not depend on some other system settings.

There's no reason to add OS-specific margins instead of the ones
specified by the user when generating PDFs, so set these to zero.

Assignee: nobody → james
Status: NEW → ASSIGNED
Pushed by james@hoppipolla.co.uk:
https://hg.mozilla.org/integration/autoland/rev/3c5e8ebe9ec0
Set unwritableMargins to 0 in marionette, r=marionette-reviewers,whimboo

(In reply to James Graham [:jgraham] from comment #0)

Gecko has the concept of the unprintable area, which is effectively a system-specific additional margin added to printed documents by default. I don't think it makes sense to add this to documents generated with the marionette print command since PDFs don't have an unprintable region, and authors should expect the margin to be what they specify and not depend on some other system settings.

Priority: -- → P3
Summary: WebDriver print endpoint ends up adding extra margins to the document. → "WebDriver:Print" ends up adding extra margins to the document
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla75
Product: Testing → Remote Protocol
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: