Closed Bug 1652746 Opened 4 years ago Closed 4 years ago

[Page range] Selecting the ending content of a heading tag ignores the selection rule and the rest of the document gets printed as well

Categories

(Core :: Printing: Setup, defect)

defect

Tracking

()

RESOLVED DUPLICATE of bug 1654406
Tracking Status
firefox-esr68 --- unaffected
firefox-esr78 --- wontfix
firefox78 --- wontfix
firefox79 --- wontfix
firefox80 --- fixed

People

(Reporter: emilghitta, Unassigned)

References

(Regression)

Details

(Keywords: regression, Whiteboard: [print2020_v80])

Attachments

(3 files)

Attached file Test Case

Affected versions

  • 80.0a1 (BuildId:20200713095122)
  • 79.0b7 (BuildId:20200710175519)
  • 78.0.2 (BuilId:20200708170202)
  • 78.0.2esr (BuildId:20200708170510)

Unaffected versions

  • 68.10.0esr (BuildId:20200622191537)

Affected platforms

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

Steps to reproduce

  1. Launch Firefox.
  2. Load the attached test case.
  3. Select the “Heading 1.”
  4. Hit ctrl +p.
  5. Click the “Selection” radio button from the “Page Range” section.
  6. Print the file or save to pdf.

Expected result

  • Only the selected part is printed.

Actual result

  • The selected part and the rest of the content gets printed.

Regression Range

Notes

  • This seems to be reproducible on other webpages as well (https://en.wikipedia.org/wiki/United_States) by selecting the ending content of a heading tag (Selecting the “history” from the “Indigenous peoples and pre-Columbian history” part).

Hi Erik,

It seems that mozregression pointed out Bug 1620289 - Part 1 Clone Selection Ranges For Printing r=jwatt for causing this regression.

Can you please take a look?

Thank you!

Has Regression Range: --- → yes
Has STR: --- → yes
Flags: needinfo?(enordin)
Attached image Selection.gif
Attached image macOS_selection.png

Hmm, I just followed your steps on my macOS machine (which is what I wrote the initial patch on) and everything appears to work as intended. But I saw your gif of the unexpected behavior on Windows.

I'm not sure what would be causing this to behave differently on different operating systems. I will investigate this.

Flags: needinfo?(enordin)

I temporarily mark this as S2 because this happens on wiki (a commonly-printed site) as well, and Erik will take a look on this. Please feel free to downgrade this if there are some other workaround ways.

Severity: -- → S2

If I select "Heading 1" (the period is not selected) then it prints "Heading 1." (with the period). If I select "Heading 1." (with the period) it prints everything from the selection to the end of the document. The behavior of the former selection may indicate an off-by-one indexing error somewhere.

Whiteboard: [print2020_v81]
Whiteboard: [print2020_v81] → [print2020_v82]
Depends on: 1654406
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → DUPLICATE
Whiteboard: [print2020_v82] → [print2020_v80]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: