Closed Bug 1155230 Opened 10 years ago Closed 10 years ago

Printing nested table with empty row causes unexpected results

Categories

(Core :: Layout: Tables, defect)

37 Branch
defect
Not set
minor

Tracking

()

VERIFIED FIXED
Tracking Status
firefox37 - wontfix
firefox38 + verified
firefox39 + verified
firefox40 + verified

People

(Reporter: dastclair, Unassigned)

References

Details

(Keywords: regression, testcase, Whiteboard: [bugday-20150610])

Attachments

(1 file)

Attached file bug.html
User Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.90 Safari/537.36 Steps to reproduce: Open attached file bug.html in Firefox 37.0.1 (Windows 7). Click the print button. On printout, the words "This text should print on the second page." and a button that says "print" should be on the second page. This works properly in Firefox 36.0.4, Chrome 42.0.2311.90 (64 bit), and IE 11.0.9600.17691. Actual results: 3 pages are printed. The first 2 are blank and the last one has the "print" button on it. Expected results: 2 pages should have been printed with the second page containing the words "This text should print on the second page." and a button that says "Print".
Blocks: 1108104
Status: UNCONFIRMED → NEW
Component: Untriaged → Printing: Output
Ever confirmed: true
Keywords: regression
Product: Firefox → Core
Fwiw, I think you can workaround this bug by adding a <td> in the empty <tr>.
Severity: normal → minor
Component: Printing: Output → Layout: Tables
OS: Windows 7 → All
Hardware: x86 → All
If I remove the "incremental reflow hack" in nsTableOuterFrame::Reflow that was moved from nsSimplePageSequenceFrame::Reflow in bug 1108104, then the bug does not occur. (I don't think moving it back is an option though.) The problem occurs because the inner table frame has an OverflowList when we do that early return.
Keywords: testcase
Depends on: 1152354
Tracking regression for 38+. This is not significant enough to warrant a point release for 37.
Bug 1152354 fixed this I think.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
QA Whiteboard: [good first verify]
Reproduced with Firefox Nightly 40.0a1 with the instructions from comment 0 on Windows 7 64 Bit. Build ID: 20150416030209 User Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:40.0) Gecko/20100101 Firefox/40.0 Verified as fixed with: Firefox 38.0.1 Build ID: 20150513174244 User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Firefox/38.0 Firefox Beta 39.0 Build ID: 20150523155636 User Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:39.0) Gecko/20100101 Firefox/39.0 Firefox Aurora 40.0a2 Build ID: 20150526004004 User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:40.0) Gecko/20100101 Firefox/40.0 [bugday-20150527]
Test it on linux 64 Bit verified as fixed with: Firefox Beta 39.0 Name Iceweasel Version 39.0 Build ID 20150527225439 User Agent Mozilla/5.0 (X11; Linux x86_64; rv:39.0) Gecko/20100101 Firefox/39.0 Iceweasel/39.0 Firefox Aurora 40.0a2 Name Iceweasel Version 40.0a2 Build ID 20150527004004 User Agent Mozilla/5.0 (X11; Linux x86_64; rv:40.0) Gecko/20100101 Firefox/40.0 Iceweasel/40.0a2 Firefox released version 38.0.1 Name Iceweasel Version 38.0.1 Build ID 20150525043631 User Agent Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Firefox/38.0 Iceweasel/38.0.1 [bugday-20150603]
I have successfully reproduced the bug in nightly firefox-40.0a1. The bug is fixed on latest nightly 41.0a1 (User Agent Mozilla/5.0 (X11; Linux x86_64; rv:41.0) Gecko/20100101 Firefox/41.0 , build ID 20150609081916).
Status: RESOLVED → VERIFIED
QA Whiteboard: [good first verify] → [good first verify][bugday-20150610]
Whiteboard: [bugday-20150610]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: