Closed Bug 1660064 Opened 4 years ago Closed 4 years ago

When printing a subdocument and using 'Save to PDF', the generated filename is wrong

Categories

(Toolkit :: Printing, defect, P2)

defect

Tracking

()

RESOLVED FIXED
81 Branch
Tracking Status
firefox81 --- fixed

People

(Reporter: jwatt, Assigned: mstriemer)

Details

(Whiteboard: [print2020_v81])

Attachments

(1 file)

When opening the context menu over a subdocument and selecting This Frame -> Print frame..., and then in the print preview choosing 'Save as PDF', the prepopulated filename is supposed to come from the title of the document being printed. Currently, it is incorrectly being generated from the title of the top-level document.

This is happening because pickFileName uses sourceBrowser.currentURI.spec. Instead of getting the title from the XUL browser for the tab, the title should come from the source BrowsingContext.

Although I guess it's a bit hard to repro this until bug 1659859 is fixed, or until bug 1602410 makes it to m-c. (Although for the latter you need to mess with the devtools console, which isn't quite as simple.)

Priority: -- → P2
Assignee: nobody → mstriemer
Pushed by jwatt@jwatt.org:
https://hg.mozilla.org/integration/autoland/rev/32a10a7c83ae
Use subdocument info when saving a subdocument to PDF r=jwatt
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 81 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: