Printing with multiple fixed-pos elements triggers "ASSERTION: Primary child list can have at most one frame in it: 'aListID != kPrincipalList || aChildList.IsEmpty() || aChildList.OnlyChild()', file layout/generic/nsCanvasFrame.cpp:265"
Categories
(Core :: Printing: Output, defect)
Tracking
()
People
(Reporter: dholbert, Unassigned)
Details
(Keywords: assertion)
Attachments
(1 file)
|
236 bytes,
text/html
|
Details |
STR:
- Print-preview (or print) the attached testcase in a debug build.
- Check your terminal for assertions.
ACTUAL RESULTS:
This assertion gets spammed when we reflow for the print/print-preview layout:
ASSERTION: Primary child list can have at most one frame in it: 'aListID != kPrincipalList || aChildList.IsEmpty() || aChildList.OnlyChild()', file layout/generic/nsCanvasFrame.cpp:265
EXPECTED RESULTS:
No assertion.
This seems to happen for any document that has multiple fixed-position frames and multiple pages. nsCSSFrameConstructor::ReplicateFixedFrames gets called for the second page, which calls canvasFrame->SetInitialChildList(kPrincipalList, fixedPlaceholders); at the very end, which trips over this assertion (since we're passing in a principal child-list with multiple placeholder-frames).
| Reporter | ||
Comment 1•4 years ago
|
||
Updated•4 years ago
|
| Reporter | ||
Comment 2•3 years ago
|
||
Note, this bug reproduces when you print-preview about:home (i.e. the default new-tab page), probably because it has several fixed-position elements, making it sufficiently similar to the reduced testcase.
Updated•8 months ago
|
Description
•