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)
Toolkit
Printing
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.
Reporter | ||
Comment 1•4 years ago
|
||
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.)
Updated•4 years ago
|
Priority: -- → P2
Assignee | ||
Updated•4 years ago
|
Assignee: nobody → mstriemer
Assignee | ||
Comment 2•4 years ago
|
||
Pushed by jwatt@jwatt.org: https://hg.mozilla.org/integration/autoland/rev/32a10a7c83ae Use subdocument info when saving a subdocument to PDF r=jwatt
Comment 4•4 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 4 years ago
status-firefox81:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 81 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•