Closed Bug 1790552 Opened 2 years ago Closed 2 years ago

Multiple "*" characters were added editing, print preview and saving the file multiple time

Categories

(Firefox :: PDF Viewer, defect, P1)

Firefox 106
defect

Tracking

()

VERIFIED FIXED
Tracking Status
firefox106 --- wontfix
firefox107 --- verified

People

(Reporter: zstimi, Assigned: Snuffleupagus)

References

Details

Attachments

(2 files)

Attached image print.png

Found in

  • Firefox 106.0a1

Affected versions

  • Firefox 106.0a1

Tested platforms

  • Affected platforms: Windows 10 x64, macOS 10.15
  • Unaffected platforms: Ubuntu 22 x64

Steps to reproduce

  1. Launch Firefox and verify if pref is set to: pdfjs.annotationEditorMode = 0
  2. Access any *.pdf form.
  3. Toggle on Text or Draw button and write or draw a few separate texts on pdf.
  4. After typing a text and click somewhere outside of editing text area, then on the pdf tab name is added a '*' character as first character, indicates that any edits were made.
  5. Click on print button and from destination select the "Microsoft Print to PDF" option.
  6. Save the document.
  7. Drag and drop in the Firefox tab bar the saved pdf document, edit again, add a text, will see that a second "*" added to the tab name.
  8. Print preview again, select "Microsoft Print to PDF" for the second time.
  9. Save the document.

Expected result

  • No "*" character were added to the pdf tab name.

Actual result

  • "*" characters were added every edited, print and save with "Microsoft Print to PDF"

Regression range

  • I will come back with regression range ASAP.

Additional notes

  • The issue is not reproducible on Windows 10 x64 and Ubuntu 22 x64 by selecting "Save to PDF" from print/destination dropdown but reproduced on macOS 10.15 with "Save to PDF" option.

Microsoft Print to PDF is using document.title as the pdf title, hence we must reset the title before printing and restore it after.

Assignee: nobody → jonas.jenwald
Status: NEW → ASSIGNED
Priority: -- → P1
Has STR: --- → yes
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED

I can confirm this issue is fixed, I verified using Firefox 108.0a1 and Firefox 107.0b3 on Win 10 x64, macOS 12.

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

Attachment

General

Created:
Updated:
Size: