Closed Bug 1660463 Opened 4 years ago Closed 4 years ago

Print selection is available and doesn’t work properly for a pdf document

Categories

(Core :: Printing: Output, defect, P1)

Firefox 81
defect

Tracking

()

VERIFIED FIXED
82 Branch
Tracking Status
firefox-esr68 --- unaffected
firefox-esr78 --- unaffected
firefox79 --- unaffected
firefox80 --- unaffected
firefox81 --- verified
firefox82 --- verified

People

(Reporter: emilghitta, Assigned: bobowen)

References

(Blocks 1 open bug, Regression)

Details

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

Attachments

(2 files)

Attached image pdfSelection.gif (deleted) —

Affected versions

  • 81.0a1 (BuildId:20200821033746)

Affected platforms

  • Windows 10 64bit
  • macOS 10.14
  • Ubuntu 18.04 64bit

Steps to reproduce

  1. Launch Firefox.
  2. Open a pdf file.
  3. Select a portion of text.
  4. Open the system modal.
  5. Click the “Selection” option from the page range.
  6. Print the file as pdf or to paper.

Expected result

  • The selection is printed or the print “selection” option is not available for a pdf file.

Actual result

  • If printing to paper no actual print job is started. If the selection is printed to pdf it will output a blank pdf document.

Regression Window

Additional Information

  • For further information regarding this issue please observe the attached screencast.
  • This seems to affect both the new and old ui
  • [Suggested Severity] S3

Hi Bob!

It seems that mozregression pointed out Bug 1653334 part 2: Cache the selection ranges on subdocuments as we build the nsPrintObject tree. r=jwatt for causing this regression.

Can you please take a look?

Thank you!

Flags: needinfo?(bobowencode)
Severity: -- → S2
Priority: -- → P1
Has Regression Range: --- → yes
Has STR: --- → yes

I'll take a look at this.

Assignee: nobody → bobowencode
Status: NEW → ASSIGNED
Flags: needinfo?(bobowencode)

The problem is that I didn't allow for mDisallowSelectionPrint in my change, patch on the way.

Pushed by bobowencode@gmail.com: https://hg.mozilla.org/integration/autoland/rev/291ac0594994 Only allow printing of a selection when mDisallowSelectionPrint is false. r=jwatt
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 82 Branch

Comment on attachment 9171694 [details]
Bug 1660463: Only allow printing of a selection when mDisallowSelectionPrint is false. r=jwatt!

Beta/Release Uplift Approval Request

  • User impact if declined: Printing PDFs makes "print selection" an available option, but we don't support that for PDFs. This is a regression for the old UI as well as a bug with the new print UI.
  • Is this code covered by automated tests?: No
  • Has the fix been verified in Nightly?: Yes
  • Needs manual test from QE?: No
  • If yes, steps to reproduce:
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): Simple flag check to trigger existing codepath to hide option in UI.
  • String changes made/needed:
Attachment #9171694 - Flags: approval-mozilla-beta?

Comment on attachment 9171694 [details]
Bug 1660463: Only allow printing of a selection when mDisallowSelectionPrint is false. r=jwatt!

Approved for 81.0b2.

Attachment #9171694 - Flags: approval-mozilla-beta? → approval-mozilla-beta+

This is verified fixed using Firefox 82.0a1 (BuildId:20200827212940) and Firefox 81.0b3 (BuildId:20200827203325) on Windows 10 64bit, macOS 10.14 & Ubuntu 18.04 64bit.

Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: