Closed Bug 1668516 Opened 5 years ago Closed 5 years ago

[PI-819] [old UI] The page orientation can no longer be changed after printing to PDF on Windows

Categories

(Toolkit :: Printing, defect, P1)

Desktop
Windows
defect

Tracking

()

VERIFIED FIXED
83 Branch
Tracking Status
firefox-esr78 --- unaffected
firefox81 --- unaffected
firefox82 --- verified
firefox83 --- verified

People

(Reporter: ppop, Assigned: bobowen)

References

(Regression)

Details

(Keywords: regression, Whiteboard: [print2020_v82][old-ui+])

Attachments

(2 files)

Attached image print_to_PDF.gif

[Affected versions]:

  • Firefox Beta 82.0b5, Build ID 20200929175845

[Affected platforms]:

  • Windows 10 x64

[Prerequisites]:

  • Have the "print.tab_modal.enabled" pref set as "false".

[Steps to reproduce]:

  1. Open the browser with the profile from prerequisites and navigate to any webpage.
  2. Click the hamburger menu button and click the "Print..." option.
  3. Make sure "Portrait" mode is selected and click the "Print..." button.
  4. Select the "Microsoft Print to PDF" and click the "Print" button.
  5. After the document is saved, click the "Landscape" button and observe the behavior.

[Expected result]:

  • The orientation of the page is changed to Landscape.

[Actual result]:

  • The page remains in the Portrait orientation.

[Regression]:

[Notes]:

  • This issue is not reproducible using the new UI.
  • The issues persists after the browser is restarted.
  • This issue is not reproducible on macOS and linux.
  • Attached a screen recording of the issue:

Bob, can you take a look?

Flags: needinfo?(bobowencode)
Regressed by: 1663940
Has Regression Range: --- → yes
Summary: [PI-819] The page orientation can no longer be changed after printing to PDF on Windows → [PI-819] [old UI] The page orientation can no longer be changed after printing to PDF on Windows
Assignee: nobody → bobowencode
Status: NEW → ASSIGNED
Flags: needinfo?(bobowencode)
Priority: -- → P1
Pushed by bobowencode@gmail.com: https://hg.mozilla.org/integration/autoland/rev/80dbcab5c7ca Account for orientation when getting paper size from device context in CopyFromNative. r=jwatt

Comment on attachment 9179083 [details]
Bug 1668516: Account for orientation when getting paper size from device context in CopyFromNative. r=jwatt!

Beta/Release Uplift Approval Request

  • User impact if declined: Previewing and printing to landscape will be broken for Windows users in the old UI.
  • Is this code covered by automated tests?: No
  • Has the fix been verified in Nightly?: No
  • Needs manual test from QE?: Yes
  • If yes, steps to reproduce: See description
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): Fairly simple patch which allows for whether the DEVMODE and device context being used have their orientation set to landscape.
  • String changes made/needed: None
Attachment #9179083 - Flags: approval-mozilla-beta?
Flags: qe-verify+
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → 83 Branch

Comment on attachment 9179083 [details]
Bug 1668516: Account for orientation when getting paper size from device context in CopyFromNative. r=jwatt!

approved for 82.0b7

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

I've verified that this issue is no longer reproducible on Beta 82.0b7, Build ID 20201002191150 and Nightly 83.0a1, Build ID 20201004212809 using Windows 10 x64. However the "Landscape" page orientation can't be selected before printing at least once. This behavior is tracked in Bug 1669187.

Status: RESOLVED → VERIFIED
QA Whiteboard: [qa-triaged]
Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: