Closed
Bug 362210
Opened 18 years ago
Closed 15 years ago
[reflow branch] Crash on closing print preview when at least two pages are involved
Categories
(Core :: Layout, defect)
Core
Layout
Tracking
()
RESOLVED
FIXED
People
(Reporter: martijn.martijn, Assigned: sharparrow1)
References
(Depends on 1 open bug)
Details
(Keywords: crash, testcase)
Attachments
(4 files)
292 bytes,
text/html
|
Details | |
1.69 KB,
patch
|
Details | Diff | Splinter Review | |
4.51 KB,
patch
|
Details | Diff | Splinter Review | |
1.55 KB,
patch
|
MatsPalmgren_bugz
:
review+
roc
:
superreview+
|
Details | Diff | Splinter Review |
I crash on closing print preview when at least 2 pages are shown on print preview. I tried to get a backtrace with a debug build, but I didn't manage to get a useful stack.
Reporter | ||
Comment 1•18 years ago
|
||
Updated•18 years ago
|
Assignee: nobody → mats.palmgren
OS: Windows XP → All
Hardware: PC → All
Comment 2•18 years ago
|
||
It seems we have flipped the DIRTY bit test compared to trunk: http://bonsai.mozilla.org/cvsblame.cgi?file=/mozilla/layout/generic/nsPageFrame.cpp&rev=3.162&root=/cvsroot&mark=102#83 This fixes the crash but it still doesn't print more than one page...
Comment 3•18 years ago
|
||
This makes more sense I think.
Attachment #246939 -
Flags: superreview?(bzbarsky)
Attachment #246939 -
Flags: review?(bzbarsky)
Comment 4•18 years ago
|
||
I don't think I know enough about how our overflow list stuff works to review this quickly... maybe try roc?
Everywhere else we do things differently: when frame A reflows child B, and B is incomplete, then A creates the continuation for B (say B') and then puts B' on A's overflow list. I think we should do that here too, where A is an nsSimplePageSequenceFrame and B is the nsPageFrame.
Updated•18 years ago
|
Attachment #246939 -
Flags: superreview?(bzbarsky)
Attachment #246939 -
Flags: review?(bzbarsky)
(In reply to comment #2) > It seems we have flipped the DIRTY bit test compared to trunk: That's not flipped. We now have a dirty bit set if we would have, in the past, had a StyleChange or Initial reflow reason, or maybe also a Dirty reflow reason, depending on what Dirty was used for on that particular frame (since Dirty basically meant "custom", if my memory is corrrect). What if you remove the test entirely?
Assignee | ||
Comment 7•18 years ago
|
||
This fix isn't correct in the general case, but it's good enough to fix print preview. I'm not completely sure when this isn't equivalent to the dirty test for print preview. For print preview, there should be an initial reflow, and after that nothing should get marked dirty. We certainly shouldn't be creating a continuation twice, though, so I think this preserves what the test was supposed to do.
Attachment #248150 -
Flags: review?(dbaron)
Assignee | ||
Comment 8•18 years ago
|
||
*** Bug 363272 has been marked as a duplicate of this bug. ***
Comment 9•18 years ago
|
||
See Bug 363272 for stack traces.
Reporter | ||
Comment 10•18 years ago
|
||
*** Bug 363382 has been marked as a duplicate of this bug. ***
Updated•18 years ago
|
Blocks: reflow-refactor
Comment 11•18 years ago
|
||
Comment on attachment 248150 [details] [diff] [review] Minimal patch I think we should take this as wallpaper for now at least, so we don't block further Print Preview testing and stop the dupes. We can leave the bug open to implement what roc suggested in comment 5 later. r=mats
Attachment #248150 -
Flags: superreview?(roc)
Attachment #248150 -
Flags: review?(dbaron)
Attachment #248150 -
Flags: review+
Attachment #248150 -
Flags: superreview?(roc) → superreview+
Comment 12•18 years ago
|
||
Comment on attachment 248150 [details] [diff] [review] Minimal patch Landed on trunk 2006-12-12 01:54 PST.
Reporter | ||
Updated•17 years ago
|
Flags: blocking1.9?
Assignee | ||
Comment 13•17 years ago
|
||
re: blocking1.9? flag: The wallpaper isn't great, but fixing it propertly isn't a high priority. There isn't really much to gain until we try to implement dynamic pagination.
Reporter | ||
Comment 14•17 years ago
|
||
Ah, ok, Mats mentioned the patch was wallpaper, so I thought we desperately wanted to have a better fix for this.
Flags: blocking1.9? → blocking1.9-
Reporter | ||
Comment 15•17 years ago
|
||
Maybe it's just better to mark this fixed and file a new bug whatever is meant in comment 5?
Comment 16•15 years ago
|
||
sounds like this bug should get marked fixed, and a new low priority bug ought to get opened up.
Comment 17•15 years ago
|
||
I looked at the current code and it does what is said in comment 5. Marking this bug fixed, and filed bug 511536 for the improvement mentioned in comment 7.
Assignee: matspal → sharparrow1
Status: NEW → RESOLVED
Closed: 15 years ago
Depends on: 511536
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•