Open Bug 521204 Opened 15 years ago Updated 28 days ago

[META] Wrong page splitting / Missing page content when printing

Categories

(Core :: Printing: Output, defect)

defect

Tracking

()

People

(Reporter: jmdesp, Unassigned)

References

(Depends on 31 open bugs)

Details

(Keywords: meta)

Triaggers :
- for a bug that reports bad page splitting / missing pages in print or print preview, and you have no idea if it's a dup of an existing problem, mark as blocking this bug

- if you strongly suspect it's a dupe of a problem in the list of those blocking this bug, mark it as depending on *that* bug.
Leave a comment on the bug that if solving the depending bug doesn't solve the problem, the bug should be changed to blocking this one

- if you have *demonstrated* it's a dupe of an existing problem, close it by duping to that bug. But add a comment to the duped bug with the url of the problem.

In the first two case, please try to extract a reproducible test case from the page. If you don't have much time, don't try to minimize it, but *do* try to save it as a workable test case somewhere. If this is not done, the page will very probably have changed by the time someone wants to check what the problem consist of exactly or if it is corrected by some fix, and the usefulness of the bug will be reduced to about zero.
Depends on: 179135
Blocks: 125824
Depends on: 132035, 257261
Depends on: 129941
Depends on: 471015
Depends on: 531200
Depends on: 294991
Depends on: 452845
Depends on: 440995
Depends on: 534182
Depends on: 538539
Depends on: 550866
Depends on: 570362
Blocks: 546559
No longer blocks: 546559
Depends on: 546559
Depends on: 178554
Depends on: 628978
Depends on: 220102
Depends on: 522604, 377204
No longer blocks: 125824
Version: unspecified → Trunk
Depends on: 649081
Depends on: 652929
Depends on: 762247
Depends on: 828991
Depends on: 313959
Depends on: 831269
Depends on: 694748
No longer depends on: 831269
Depends on: 833623
Depends on: 833772
Depends on: 869440
Depends on: 863912
Depends on: 544791
Depends on: 904589
No longer depends on: 694748
Depends on: 960822
Depends on: 960818
Depends on: 963441
Depends on: 991388
Depends on: 1017137
Depends on: 1089549
Depends on: 1095440
No longer depends on: 1095440
Depends on: 939897
Keywords: meta
Depends on: 1164370
Depends on: 1106301
Depends on: 1250348
Problem is still exists in Firefox trunk 53 version, we can reproduce this problem via try to print this page: http://semantic-ui.com/ - this only one example, but in real I can't print many sites! This is serious problem!
Depends on: 1406050
Depends on: 1407875
Still reproducible and only prints the first page.
Yepp. Try this:

https://webpack.js.org/concepts/
Depends on: 1520749

Investopedia also only prints the first page
https://www.investopedia.com/why-value-investing-model-championed-by-buffett-is-broken-4691764

However it does work with simplify page.

That Investopedia one is bug 939897. (They use display:flex on <body> and <main>, and if I override those to use display:block instead, then it doesn't get truncated.)

Depends on: 1404868
Depends on: 1501175
Depends on: 1565186
Depends on: 1574684

Same issue for Google Forms (only prints first page).

This URL prints only the first page, seen on 69.0 on Mac OS X 10.14.6 (BuildVersion: 18G95).
https://help.sap.com/doc/00f68c2e08b941f081002fd3691d86a7/2019.19/en-US/11b4e5ff76eb4747bc255d7037be1f01.html

ahem, sorry, I just realized this one has a "META" tag. Can someone please educate me what the procedure is here? Should I report this a new bug, and create in that new bug a reference to here, or is the comment here enough?

hey Florenz, I believe the comment here is good enough.
If you have the time to investigate further, and then you realize the problem comes from another root issue we haven't uncovered yet (so isn't covered by dependent bugs), then a separate bug would be useful.
Thanks for your contribution :)

(In reply to Florenz Kley from comment #11)

This URL prints only the first page, seen on 69.0 on Mac OS X 10.14.6 (BuildVersion: 18G95).
https://help.sap.com/doc/00f68c2e08b941f081002fd3691d86a7/2019.19/en-US/11b4e5ff76eb4747bc255d7037be1f01.html

FWIW, when this page is shown in Print Preview mode it only indicates that one page is to be printed. In other words, page 1 of 1. This same behavior was note in IE11 and Firefox version-de-jour on my work station. I would suggest that this behavior may be normal for this page (i.e., the author has coded the page intentionally to prevent printing the entire content from the web perhaps because they offer it for sale separately). Just an observation.

After seeing the last comment, I confirmed the same behavior of that page on:

MacOS High Sierra 10.13.6 (17G8030) with Google Chrome 76.0.3809.132 (Official Build) (64-bit)
MacOS High Sierra 10.13.6 (17G8030) with Firefox 69.0 (64-bit)
MacOS High Sierra 10.13.6 (17G8030) with Safari 12.1.2 (13607.3.10)
McaOS Mojave 10.14.5 (18F132)​ with Safari 12.1.1 (14607.2.6.1.1)
Windows 7 Professional SP1 with Google Chrome 77.0.3865.90 (Official Build) (64-bit)
Windows 7 Professional SP1 with Firefox 69.0 (32-bit)
Windows 7 Professional SP1 with Firefox 69.0.1 (32-bit)
Windows 7 Professional SP1 with Internet Explorer 11.0.9600_19431

So it really looks like the page really does something that hoses printing on all of the above web browsers. It is still a bug that this behavior occurs, but -- like the bug that Teardrop attack of several years ago exploited -- it seems to be extremely widespread (although fortunately of much less severe impact).

(In reply to Jim Scott from comment #14)

I would suggest that this behavior may be normal for this page (i.e., the author has coded the page intentionally to
prevent printing the entire content from the web perhaps because they offer it for sale separately). Just an observation.

yes, SAP is a software vendor, but no, that page is free to view anonymously, no logon credentials required

(In reply to Jim Scott from comment #14)
I would suggest that this behavior may be normal for this page (i.e., the author has coded the page intentionally to
prevent printing the entire content from the web perhaps because they offer it for sale separately). Just an observation.

reported it as SAP incident 537216 / 2019 (in a system for SAP customers) , and I will ask directly if that is intended behavior or not. Also mentioned this bug in the incident, as soon as I hear something back I will post it here.

That SAP page simply has all of its content inside of an overflow:auto element (i.e. a scrollable element) which is sized to fit in the viewport (top:91px; bottom: 0), which in the case of a printed document is the first page. When viewed in a browser, you can reach all the content via scrolling that element, but of course there is no scrollbar in the printed output.

So indeed, browsers are all printing it "correctly", and SAP probably wants to add a "print" media query to turn off that overflow:auto styling (and perhaps some other styling).

In any case: let's please not have further discussion/investigation of individual issues on this bug, since this is a meta-bug. Best to spin off individual bugs per-issue so that this bug's comment-thread doesn't become a giant wall of different investigations. Thanks!

Depends on: 1427141
Depends on: 1513949
Depends on: 1627503

when using "cups-pdf" or "save as adobe pdf" (with adobe acrobat x pro) to print this site here
https://www.middleeastmonitor.com/20190403-israels-politicians-are-chickens-we-need-to-shake-up-the-system-says-hadashs-jewish-candidate/
on mac osx 10.6.8 and with camino browser
only page 0/1 is printed the rest is truncated.

Sorry if this is the wrong place to report this, but I don't know if it is a duplicate of any of the other print truncation bugs. Regardless, I hope it is a useful additional reproduction. This page: https://boardgamegeek.com/thread/1855931/12-dice-are-so-light-and-portable-you-can-always-h looks correct when using dev mode to preview as a printed document, but truncates after the first page (printing the first page, and a nearly empty second page) when printing to a PDF (and presumably when printing in general, although I haven't tested that).

Oops, I should have checked my pending updates. I was on 77. On Firefox 78, the page also does not print properly, but in a totally different way. Now it seems to get truncated in random places, and chop out assorted parts of the pages, while printing other pages as blank. Still, the changes suggests that this issue is being worked on, which I really appreciate. Again, I hope that the above link is a useful test case for you.

Depends on: 1648947
Depends on: 1606540
Depends on: 1657896
Depends on: 1666825

CrorePati also only prints the first page
https://www.crorpati.com/passive-income-ideas/
However it does work with simplify page.

(In reply to Pritam Datta from comment #22)

CrorePati also only prints the first page
https://www.crorpati.com/passive-income-ideas/
However it does work with simplify page.

Why this comment marked as spam. I was facing the issue. But may be there was problem with my profile. I have changed my profile & also updated to the current version. Now Its working good.

(In reply to B.J. Herbison from comment #23)

(In reply to Pritam Datta from comment #22)

CrorePati also only prints the first page
https://www.crorpati.com/passive-income-ideas/
However it does work with simplify page.

I didn't want to send it to an actual printer, when I selected "save to file" a 28 page PDF was created. What happens if you save to a file? If you only get only the first page try in Troubleshooting mode or a new profile.

Thanks for your genuine feedback & support.

(In reply to Pritam Datta from comment #24)

Why this comment marked as spam. I was facing the issue.

Sorry -- looks like somebody misunderstood your comment and thought you were a spammer; people post links with all sorts of weird ads on bugzilla, and your "passive-income-ideas" link probably looked like that, at first glance.

In any case, I've removed the spam annotation from your comment.

But may be there was problem with my profile. I have changed my profile & also updated to the current version. Now Its working good.

Glad to hear it! I tried the site that you mentioned and didn't see any missing content, so I suspect all is well now.

In the future: if you or anyone else encounter a bug of this type, please don't add a comment here -- instead, it's best to file a dedicated bug for your issue, using the "New/Clone" button at the top of this page, with the "...that blocks this bug" menu entry.

Depends on: 1759926
Depends on: 1779949
Severity: normal → S3
Depends on: 1831201
Depends on: 1807985
Depends on: 1857348
Depends on: 1881137
No longer depends on: 1520749
Depends on: 1848431
Depends on: 1859638
You need to log in before you can comment on or make changes to this bug.