Closed
Bug 1279816
Opened 9 years ago
Closed 9 years ago
Title (h* tags) disappear in printing overview, but is actually printed
Categories
(Core :: Print Preview, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: dev.coding, Unassigned)
Details
Attachments
(2 files)
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:47.0) Gecko/20100101 Firefox/47.0
Build ID: 20160604131506
Steps to reproduce:
I tried to print this page http://www.dracca.com/gamebook/1/en/online/p0 through Firefox's "Menu / Print" option. Same occurs for other pages in that website. I haven't met this issues on other website (but I don't try to print a lot of websites!)
Actual results:
The overview shortly displays the page title (like during a frame or so), and then the title (h1) is hidden, but if I print the page, the title is shown (I tried printing in a PDF only).
If I change the zoom (from "Auto adjust" to like 100%), then the title appears again. If I switch back to "Auto adjust", the title is still there.
So the issue seems to be that the title of the page disappear from the printing overview, but is actually printed (it is shown in Opera and Chrome, and in Firefox only after having changed the "Zoom" option).
Expected results:
The title should not have disappeared.
I can't reproduce it: http://i.imgur.com/wNA4B79.jpg
Are you using HiDPI display? Did you have this issue with FF46?
Component: Untriaged → Print Preview
Flags: needinfo?(xenos)
OS: Unspecified → Windows 7
Product: Firefox → Core
Hardware: Unspecified → x86_64
Reporter | ||
Comment 2•9 years ago
|
||
I don't remember having that issue with elder Firefox, but I cannot be sure it was FF 46.
I am using a VGA display (1440x900), the same occurs on my DVI ones(1980x1080).
I've managed to catch the tiny frame when the title shows up.
But good news for you developers: the issue is no longer here when I start in safe mode, so it might be one of those numerous modules I have... I will check that asap.
Reporter | ||
Comment 3•9 years ago
|
||
Reporter | ||
Comment 4•9 years ago
|
||
Okay, my bad, this comes from a greasemonkey script that does a replaceChild on the title:
[].forEach.call(paragraph.querySelectorAll("h1:first-child"), function (h1) {
var anchor = document.createElement("a");
var folder = paragraph.classList.contains("paragraphe-draft") ? "a-relire" : (paragraph.classList.contains("paragraphe-empty") ? "vides" : "rediges");
anchor.setAttribute("href", baseUri + "livres/livre-1/" + folder + "/" + ("000" + paragraph.getAttribute("id").substr(1)).substr(-3) + ".xml:3");
anchor.appendChild(document.createTextNode(h1.firstChild.textContent));
h1.replaceChild(anchor, h1.firstChild);
});
Hence the "short frame when the title is seeable" (greasemonkey script not still run). But I'm not very sure why the title disappear: .replaceChild is used here to replace the title with an anchor link, so the title should be replaced instead of being dropped...
Anyway, this is closeable, since it's not a Firefix related issue, but a userscript problem.
Status: UNCONFIRMED → RESOLVED
Closed: 9 years ago
Flags: needinfo?(xenos)
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•