Unstyled XML documents do not displayed correctly in print/print preview
Categories
(Core :: Print Preview, defect, P3)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox-esr68 | --- | unaffected |
| firefox-esr78 | --- | unaffected |
| firefox79 | --- | unaffected |
| firefox80 | --- | unaffected |
| firefox81 | --- | verified |
People
(Reporter: Anca, Assigned: emilio)
References
(Blocks 2 open bugs, Regression)
Details
(Keywords: regression, Whiteboard: [print2020_v81] [old-ui+])
Attachments
(2 files, 1 obsolete file)
Affected versions
- 81.0a1
Affected platforms
- Windows 10
- macOS 10.15
- Ubuntu 18.04
Steps to reproduce
- Launch Firefox
- Make sure the print UI via print.tab_modal.enabled is set on true
- Open https://www.w3schools.com/xml/cd_catalog.xml
- Hit CTRL + P
- Observe the Print Preview content
Expected result
- The print preview/ print to paper output matches the website content
Actual result
-
- The print preview/ print to paper output doesn’t match the website content
Regression range
- I couldn't go further than this with the regression range:
- First bad: ffc01c0f13a841719e86d032ac27fe9dbc1fc5f7 (2020-08-15)
- Last good: 9bfa6276ddc55be311c681960647e96317589a0d (2020-08-14)
- Pushlog: https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=9bfa6276ddc55be311c681960647e96317589a0d&tochange=ffc01c0f13a841719e86d032ac27fe9dbc1fc5f7
Suggested severity
- I think that S3 is suitable for this issue
| Reporter | ||
Updated•10 months ago
|
Updated•10 months ago
|
Updated•10 months ago
|
Comment 1•10 months ago
|
||
(In reply to Anca Soncutean [:Anca], Desktop Release QA from comment #0)
Regression range
- I couldn't go further than this with the regression range:
- First bad: ffc01c0f13a841719e86d032ac27fe9dbc1fc5f7 (2020-08-15)
- Last good: 9bfa6276ddc55be311c681960647e96317589a0d (2020-08-14)
- Pushlog: https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=9bfa6276ddc55be311c681960647e96317589a0d&tochange=ffc01c0f13a841719e86d032ac27fe9dbc1fc5f7
Emilio, this is low priority, so only answer this if you know offhand. :-) Could the shadow root changes in bug 1658469 have broken the mechanism we use to format raw XML as markup?
| Assignee | ||
Comment 2•10 months ago
|
||
Yes, we use an UA widget for that: https://searchfox.org/mozilla-central/rev/fa7f47027917a186fb2052dee104cd06c21dd76f/dom/xml/nsXMLPrettyPrinter.cpp#88
| Assignee | ||
Updated•10 months ago
|
| Assignee | ||
Comment 3•10 months ago
|
||
There's no real security benefit for using a UAWidget for XML pretty
printing. This ensures the pretty printing shadow root is cloned during
printing just like regular shadow DOM is.
Set release status flags based on info from the regressing bug 1658469
| Assignee | ||
Comment 5•9 months ago
|
||
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/8a5007462432 Do clone xml-pretty-printer's UA widget. r=smaug
Updated•9 months ago
|
Comment 7•9 months ago
|
||
| bugherder | ||
Comment 8•9 months ago
|
||
This is verified fixed using 81.0a1 (BuildId:20200820212107) on Windows 10 64bit, macOS 10.14 and Ubuntu 20.04.
Verified that this issue is no longer reproducible with the new & old ui.
Updated•9 months ago
|
Comment 9•8 months ago
|
||
Description
•