Closed Bug 286869 Opened 19 years ago Closed 19 years ago

[FIX]bogus assertion ASSERTION: Unexpected ContentAppended: '!mIsDocumentGone during print preview

Categories

(Core :: Layout, defect, P1)

defect

Tracking

()

RESOLVED FIXED
mozilla1.8beta2

People

(Reporter: bernd_mozilla, Assigned: bzbarsky)

References

()

Details

Attachments

(1 file)

due to the checkin for bug 281957
print preview is currently a pain 

steps to reproduce load any page into print preview

move cursor
So what's going on here is that printing is just completely bogus... It sets up
a presshell, does a reflow, disconnects the presshell from the document, then,
in nsPrintEngine::FinishPrintPreview hooks the same exact presshell to the document.

I'll add hacks to PresShell to deal with this, but could you please file a
separate bug on printing code to not do this crap?  :(
Attached patch Workaround...Splinter Review
Most of this is just fixing assert tests; the only interesting part is in
BeginObservingDocument.
Attachment #178341 - Flags: superreview?(roc)
Attachment #178341 - Flags: review?(roc)
Summary: bogus assertion ASSERTION: Unexpected ContentAppended: '!mIsDocumentGone during print preview → [FIX]bogus assertion ASSERTION: Unexpected ContentAppended: '!mIsDocumentGone during print preview
OS: Windows XP → All
Priority: -- → P1
Hardware: PC → All
Target Milestone: --- → mozilla1.8beta2
Attachment #178341 - Flags: superreview?(roc)
Attachment #178341 - Flags: superreview+
Attachment #178341 - Flags: review?(roc)
Attachment #178341 - Flags: review+
Fixed.
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Product: Core → Core Graveyard
Component: Layout: Misc Code → Layout
Product: Core Graveyard → Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: