Closed Bug 1662331 Opened 5 years ago Closed 5 years ago

Use sheetCount rather than calculated the number of rendered pages

Categories

(Toolkit :: Printing, task, P2)

task

Tracking

()

RESOLVED FIXED
84 Branch
Tracking Status
firefox84 --- fixed

People

(Reporter: mstriemer, Assigned: mstriemer)

References

Details

(Whiteboard: [print2020_v84])

Attachments

(2 files)

The printPreview promise API returns to us the sheetCount which isn't currently being used, but could be used instead of doing page range calculations on our own.

We'll definitely want to do this before pages per sheet is ready (bug 1631452) and the math on our page range calculation will become incorrect.

While making this change it might be nice to remove the page-count event and instead put totalPageCount and sheetCount on the view settings object.

[Moving front-end printing v82 bugs to v83.]

Whiteboard: [print2020_v82] → [print2020_v83]
Whiteboard: [print2020_v83] → [print2020_v84]
Whiteboard: [print2020_v84] → [print2020_v85]

This is needed for the pages per sheet work, moving back to 84

Assignee: nobody → mstriemer
Whiteboard: [print2020_v85] → [print2020_v84]
Attachment #9184818 - Attachment description: Bug 1662331 - Use the sheetCount from printPreview directly r?emalysz → Bug 1662331 - Part 1: Use the sheetCount from printPreview directly r?emalysz
Status: NEW → ASSIGNED
Pushed by mstriemer@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/8204a321ed4c Part 1: Use the sheetCount from printPreview directly r=emalysz https://hg.mozilla.org/integration/autoland/rev/59d94c9d9925 Part 2: Rename numPages to sheetCount r=sfoster
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → 84 Branch

Nothing actionable for qa, flag removed

Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: