Closed
Bug 200774
Opened 22 years ago
Closed 22 years ago
[FIX]CSS2 fixed div, multiple physical pages, Print Preview crashes Moz
Categories
(Core :: Layout: Positioned, defect, P1)
Tracking
()
VERIFIED
FIXED
mozilla1.4beta
People
(Reporter: kaiser, Assigned: bzbarsky)
Details
(Keywords: crash, regression, testcase)
Attachments
(3 files)
2.46 KB,
text/html
|
Details | |
10.61 KB,
text/plain
|
Details | |
6.46 KB,
patch
|
roc
:
review+
roc
:
superreview+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4a) Gecko/20030404
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4a) Gecko/20030404
I have observed this with 1.3 and the 4 April 2003 nightly. It occurs with a
page with a fixed DIV at the top, and lots of text beneath, enough that a
printout would be 2 pages long (checked in IE). Doing a Print Preview crashes
the browser. If the text below the fixed DIV is trimmed down to one page, the
Print Preview works.
Reproducible: Always
Steps to Reproduce:
1. Load testcase.html.
2. Select File->Print Preview.
3.
Actual Results:
The "Preparing Print Preview" alert appears, and after several seconds, Mozilla
crashes.
Expected Results:
Mozilla should show the print preview. Hopefully it will be rendered correctly,
but the crash is the immediate concern.
OS is Windows XP SP1.
Talkback ID TB18827459G
Reporter | ||
Comment 1•22 years ago
|
||
Comment 2•22 years ago
|
||
Confirming in 2003040105 PC/WinXP
TB18828083Y
added kw crash
Comment 3•22 years ago
|
||
(gdb) p mStyleContext
Cannot access memory at address 0x0
Comment 4•22 years ago
|
||
printing also crashes, crash on linux (20030404)
==> printing
Assignee | ||
Comment 5•22 years ago
|
||
This is a layout bug...
The problem is that fixed-pos printing creates placeholder frames which are not
inside a blockframe -- they are the kids of a pageContentFrame....
Assignee: printing → position
Component: Printing → Layout: R & A Pos
QA Contact: sujay → ian
Assignee | ||
Comment 6•22 years ago
|
||
Assignee | ||
Comment 7•22 years ago
|
||
taking...
Assignee: position → bzbarsky
Priority: -- → P1
Summary: CSS2 fixed div, multiple physical pages, Print Preview crashes Moz → [FIX]CSS2 fixed div, multiple physical pages, Print Preview crashes Moz
Target Milestone: --- → mozilla1.4beta
Assignee | ||
Updated•22 years ago
|
Attachment #119570 -
Flags: superreview?(roc+moz)
Attachment #119570 -
Flags: review?(roc+moz)
Comment on attachment 119570 [details] [diff] [review]
Proposed fix
+ if (firstFixed) {
Why not just move this up and make it into an early exit before you construct
the state? You could move the frame list construction down below the early
exit, too.
What will it take to fix the placeholder positioning? It seems like we'd need
to have all the fixed-position frames share the same placeholder at its
original location.
Hmm, what happens if we have a document with a fixed-position element whose
placeholder is not on the first page?
Attachment #119570 -
Flags: superreview?(roc+moz)
Attachment #119570 -
Flags: superreview+
Attachment #119570 -
Flags: review?(roc+moz)
Attachment #119570 -
Flags: review+
Assignee | ||
Comment 9•22 years ago
|
||
> What will it take to fix the placeholder positioning?
Well... The spec is so totally ambiguous on what should happen there, that it's
not worth worrying about, imo. I've spent some time trying to think of
reasonable behaviors in print mode, and I have yet to think of one.
> Hmm, what happens if we have a document with a fixed-position element whose
> placeholder is not on the first page?
Chances are, it starts showing up only on the page where its placeholder is or
after....
Moved the check into an early return, and checked in.
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Comment 10•21 years ago
|
||
No crash on winXP with 2003-06-09-04trunk build.
Verifying.
Status: RESOLVED → VERIFIED
Keywords: testcase
Comment 11•16 years ago
|
||
There's a crashtest for this bug (layout/reftests/bugs/200774-1.html).
Flags: in-testsuite? → in-testsuite+
You need to log in
before you can comment on or make changes to this bug.
Description
•