Closed Bug 1833682 Opened 2 years ago Closed 2 years ago

Fix multiple pages-per-sheet scaling regression

Categories

(Core :: Printing: Setup, defect)

defect

Tracking

()

VERIFIED FIXED
115 Branch
Tracking Status
firefox-esr102 --- unaffected
firefox113 --- unaffected
firefox114 + verified
firefox115 --- verified

People

(Reporter: jwatt, Assigned: jwatt)

References

(Regression)

Details

(Keywords: regression)

Attachments

(2 files)

No description provided.

When splitting out the code for bug 1830900 I missed this rather important line.
That bug changed the code to store certain values on a per-sheet basis, but
forgot to include this line to calculate them for all sheets (as opposed to
just the first sheet).

Assignee: nobody → jwatt
Status: NEW → ASSIGNED

[Tracking Requested - why for this release]: Printing multiple pages-per-sheet is broken without it.

Set release status flags based on info from the regressing bug 1830900

Attachment #9334642 - Attachment description: Bug 1833682. Fix multiple pages-per-sheet scaling regression. r=dholbert,alaskanemily → Bug 1833682. Fix n-pages-per-sheet regression, to ensure we properly scale pages beyond the first sheet. r=dholbert,alaskanemily

Here are some STR here, for reproducing the issue here verifying that this bug is fixed (and reproducing/verifying it when we uplift to 114):

  1. Visit some document with many pages, e.g. https://en.wikipedia.org/wiki/Alice%27s_Adventures_in_Wonderland
  2. Ctrl+P to open Print Preview
  3. Choose "More Settings" and then "Pages Per Sheet: 2"
  4. Scroll through the print-previewed document.
  5. Now try changing to "Pages per sheet: 4", and scroll through the print-previewed document.

EXPECTED RESULTS:
The correct number of pages per sheet properly shown on all sheets.

ACTUAL RESULTS:
1 page shown on each sheet. (The missing pages are lost entirely)
For the 2-pages-per-sheet scenario, the page runs off the bottom of the sheet.

Attached image screenshot of the bug

Here's a screenshot of what the issue looks like, with 2 pages per sheet (left) and 4 pages per sheet (right).

Pushed by jwatt@jwatt.org: https://hg.mozilla.org/integration/autoland/rev/5c3497c1599f Fix n-pages-per-sheet regression, to ensure we properly scale pages beyond the first sheet. r=dholbert

Backed out for causing assertion failures on PrintedSheetFrame.cpp

Backout link

Push with failures

Failure log

Flags: needinfo?(jwatt)
Pushed by jwatt@jwatt.org: https://hg.mozilla.org/integration/autoland/rev/bf5802708361 Fix n-pages-per-sheet regression, to ensure we properly scale pages beyond the first sheet. r=dholbert
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 115 Branch

Comment on attachment 9334642 [details]
Bug 1833682. Fix n-pages-per-sheet regression, to ensure we properly scale pages beyond the first sheet. r=dholbert,alaskanemily

Beta/Release Uplift Approval Request

  • User impact if declined: Printing multiple pages-per-sheet is broken after the first sheet.
  • Is this code covered by automated tests?: Yes
  • Has the fix been verified in Nightly?: Yes
  • Needs manual test from QE?: No
  • If yes, steps to reproduce: See Daniel's comment 5.
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): Simple fix.
  • String changes made/needed:
  • Is Android affected?: No
Flags: needinfo?(jwatt)
Attachment #9334642 - Flags: approval-mozilla-beta?

Comment on attachment 9334642 [details]
Bug 1833682. Fix n-pages-per-sheet regression, to ensure we properly scale pages beyond the first sheet. r=dholbert,alaskanemily

Approved for 114.0b6.

Attachment #9334642 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Flags: qe-verify+
QA Whiteboard: [qa-triaged]

Reproducible on a 2023-05-17 Nightly build on macOS 12 using the STR from Comment 4.
Verified as fixed on Firefox 114.06(build ID: 20230518180043) and Nightly 115.0a1(build ID: 20230521210743) on macOS 12, Windows 10, Ubuntu 22.
Print Preview now displays the correct number of pages per sheet.

Status: RESOLVED → VERIFIED
Flags: qe-verify+
Flags: needinfo?(jwatt)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: