Closed
Bug 84017
Opened 23 years ago
Closed 23 years ago
[PATCH]grey page prints out after printing this page with filled in form fields
Categories
(Core :: Printing: Output, defect)
Core
Printing: Output
Tracking
()
VERIFIED
FIXED
mozilla0.9.5
People
(Reporter: sujay, Assigned: vidur)
References
()
Details
(Whiteboard: [PDT] will land on 0.9.4 branch on 9/27 after more verification)
Attachments
(2 files, 3 obsolete files)
2.81 KB,
patch
|
attinasi
:
review+
|
Details | Diff | Splinter Review |
5.16 KB,
patch
|
Details | Diff | Splinter Review |
using 6/1 build of netscape 1) launch netscape 2) load above URL 3) fill out the form fields do not click any Form submit buttons. 4) File | Print look at the output. its an entire page of just a grey background.
actually it happens with any page with forms, not necessarily only with the one supplied in this bug report.
Updated•23 years ago
|
Target Milestone: --- → mozilla0.9.2
Updated•23 years ago
|
Severity: normal → major
Comment 5•23 years ago
|
||
It only crashes with a release build. Debug builds do not crash. My guess is that we have pointer which has not been initialized to null.
Comment 6•23 years ago
|
||
Oops wrong bug. Ignore my previous comment
Comment 7•23 years ago
|
||
Comment 8•23 years ago
|
||
This above patch gets rid of the gray rectangle. The field is blank which is another bug, but the gray rectangle is gone.
Status: NEW → ASSIGNED
Summary: grey page prints out after printing this page with filled in form fields → [PATCH]grey page prints out after printing this page with filled in form fields
Comment 9•23 years ago
|
||
Should it be a style change reflow or should it be a resize reflow? Marc: what do you think?
Comment 10•23 years ago
|
||
Comment 11•23 years ago
|
||
patch 40462 looks good. r=kmcclusk@netscape.com
Comment 12•23 years ago
|
||
I think a StyleChange reflow is fine, but since it is neither a resize or a stylechange, it seems somewhat arbitrary to me - as long as it works. CC'ing waterson in case he has some feeling about this, but sr=attinasi because, well, it works and I think it is cool to issue a stylechange reflow when printing.
Comment 13•23 years ago
|
||
This brings cannons and mosquitos to mind. Could you at least comment it, noting the bug number, and saying something along the lines of why this fixes the problem? (Do we even know why this fixes the problem?)
Comment 14•23 years ago
|
||
Just a note here.. EndObserving document no longer does a reflow.. which history needs.. or we get a blank page for text fields. So I did a StyleChangeReflow which will put in the new history.. and fill in the document content. If there is no reflow.. and you have new history.. those fields will be gray. Checked into the trunk.
Comment 15•23 years ago
|
||
checked into .92 branch
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Reporter | ||
Comment 16•23 years ago
|
||
verified on 7/9 branch and trunk. marking verified.
Status: RESOLVED → VERIFIED
Reporter | ||
Comment 17•23 years ago
|
||
*** Bug 90898 has been marked as a duplicate of this bug. ***
Reporter | ||
Comment 18•23 years ago
|
||
*** Bug 91274 has been marked as a duplicate of this bug. ***
Assignee | ||
Comment 19•23 years ago
|
||
Chris' comments about cannons and mosquitos were pretty valid. Another reflow to get form state is pretty heavy-handed and, in fact, seems to have led to several problems related to incremental layout. The main problem is that layout history state isn't set correctly at the time of initial reflow. I'm attaching a patch that avoids the second reflow.
Assignee | ||
Comment 20•23 years ago
|
||
Assignee | ||
Comment 21•23 years ago
|
||
The whole notion of layout history state isn't managed correctly. It should be that such state is available anytime frames are created. In actuality, it's rarely (if ever) passed along to the frame constructor. I believe the only bit of code that allows form state to be restored exists in nsPresShell::ContentAppended. For loaded pages, most new content goes through this method and state is correctly restored. For printed pages, the content hierarchy already exists and frame creation happen as a result of a call to nsPresShell::InitialReflow. My patch adds a layout history state restoration to InitialReflow. A better fix (but one that would involve more code change) would move history state restoration out of nsPresShell::ContentAppended. nsPresShell methods that drive frame creation should all pass in history state through the style set to the frame constructor. In most cases, the frame constructor methods already accept a history state parameter, though null is currently passed in. The frame constructor will correctly restore state on a per-frame basis.
Assignee | ||
Comment 22•23 years ago
|
||
Reopening bug since the previous fix caused other printing regressions.
Status: VERIFIED → REOPENED
Resolution: FIXED → ---
Assignee | ||
Comment 23•23 years ago
|
||
Changing target milestone to 0.9.5 and reassigning to myself. Should this also go on the Netscape 0.9.4-based branch?
Assignee: dcone → vidur
Status: REOPENED → NEW
Target Milestone: mozilla0.9.3 → mozilla0.9.5
Comment 24•23 years ago
|
||
Vidur, that patch looks nice and simple. What kind of pages did you test it with? I'm especially curious about frameset documents (and iframes) since printing them can be, er, onerous.
Assignee | ||
Comment 25•23 years ago
|
||
Can't say I've done much testing yet. There doesn't seem to be a printing regression test, though Kevin mentioned that Don used a combination of tests based on the layout regression testing system and some of the viewer examples. Assuming I do adequate testing, can I get reviews?
Comment 26•23 years ago
|
||
When you have reviews, please mark as nsbranch+ so we can get this on the PDT radar. If it gets PDT+ed then you can check it into the branch.
Assignee | ||
Comment 27•23 years ago
|
||
Assignee | ||
Updated•23 years ago
|
Attachment #40327 -
Attachment is obsolete: true
Assignee | ||
Updated•23 years ago
|
Attachment #40462 -
Attachment is obsolete: true
Assignee | ||
Updated•23 years ago
|
Attachment #50605 -
Attachment is obsolete: true
Comment 28•23 years ago
|
||
Looks good to me. Do you want to propagate the rv from GetContent()? Or just return NS_OK? r/sr=waterson
Comment 29•23 years ago
|
||
Comment on attachment 50737 [details] [diff] [review] Added minor nsFrameManager change to deal with frames with not content. r=attinasi
Attachment #50737 -
Flags: review+
Comment 30•23 years ago
|
||
Marking nsbranch+, now that reviews are done.
Comment 31•23 years ago
|
||
*** Bug 101264 has been marked as a duplicate of this bug. ***
Comment 32•23 years ago
|
||
Vidur, can you please remove the workaround to this bug that I added in the patch to bug 82401 (I wasn't sure if you were going to fix this in time for the m0.9.4 branch). Look for "bug 101264" in nsDocumentViewer.cpp and nsSimplePageSequence.cpp. There are 3 places that are well commented. Actually, if you don't fix them per the comments, then your patch probably won't work anyway. Also, it may not be a bad idea to run some printing tests and regression tests. The table regression tests are located in tests/table/printing. I guess it is remotely possible that some printing code has become dependent on a resize reflow happening.
Comment 33•23 years ago
|
||
*** Bug 89236 has been marked as a duplicate of this bug. ***
Assignee | ||
Updated•23 years ago
|
Whiteboard: verify 89236 after this is fixed → verify 89236 after this is fixed, will land on 0.9.4 branch on 9/27 after more verification
Updated•23 years ago
|
Whiteboard: verify 89236 after this is fixed, will land on 0.9.4 branch on 9/27 after more verification → [PDT] verify 89236 after this is fixed, will land on 0.9.4 branch on 9/27 after more verification
Comment 34•23 years ago
|
||
Comment 35•23 years ago
|
||
As suspected, I can still reproduce the crash seen in bug 89236 with Patch v3 in my Mozilla 09/27/01 Win32 debug build. I'm going to un-dup 89236 from this bug.
Comment 36•23 years ago
|
||
This patch fixes bug 101987 (which was a regression caused by Karnaze's checkin), but bug 101975 is still missing content. I had to use (instead of 4497): http://www.mcsebraindumps.com/dump.php?bd_id=4499 And it was missing content on the third page (this may have always been there)
Comment 37•23 years ago
|
||
pls check it in - PDT+
Assignee | ||
Comment 38•23 years ago
|
||
Fix checked into the MOZILLA_0_9_4_BRANCH on 9/28 at 8:21pm.
Assignee | ||
Comment 39•23 years ago
|
||
Fix checked into the trunk on 9/29.
Status: NEW → RESOLVED
Closed: 23 years ago → 23 years ago
Resolution: --- → FIXED
Reporter | ||
Comment 40•23 years ago
|
||
verified in 10/1 branch. looks good. will verify on trunk later.
Status: RESOLVED → VERIFIED
Whiteboard: [PDT] verify 89236 after this is fixed, will land on 0.9.4 branch on 9/27 after more verification → [PDT] will land on 0.9.4 branch on 9/27 after more verification
Comment 41•23 years ago
|
||
*** Bug 101987 has been marked as a duplicate of this bug. ***
Reporter | ||
Comment 42•23 years ago
|
||
verified on 10/25 trunk also.
You need to log in
before you can comment on or make changes to this bug.
Description
•