Closed
Bug 100797
Opened 23 years ago
Closed 23 years ago
[FIX]Printing CS Forum message results in broken printing.
Categories
(Core :: Printing: Output, defect)
Tracking
()
VERIFIED
WORKSFORME
mozilla1.0
People
(Reporter: rods, Assigned: rods)
References
()
Details
(Keywords: topembed, Whiteboard: [bugscape 8511] PDT+)
Attachments
(1 file)
(deleted),
patch
|
kmcclusk
:
review+
attinasi
:
superreview+
|
Details | Diff | Splinter Review |
Here's how to reproduce:
Go to http://forums.compuserve.com/vlforums/default.asp?SRV=Literary
In the page you get re-directed to click on "Be Our Guest" button
Click on a "Message Board" on the left hand side
Now, you'll be on a page with a couple of frames
Click on a "Topic" on the left frame - Another frame should get displayed
Click on the Print toolbar button
- Bottom left pane does not get printed at all
Assignee | ||
Updated•23 years ago
|
Status: NEW → ASSIGNED
Keywords: topembed
Summary: Printing CS Forum message results in broken printing. → Printing CS Forum message results in broken printing.
Target Milestone: --- → mozilla0.9.5
Assignee | ||
Comment 1•23 years ago
|
||
The problem is Frames and IFrame are being reflowed to 5 pages in height to
ensure they "looked" clipped. If I comment out the line of code it works but
there is now some extra white-space at the bottom of the frame.
Patch:
Index: nsDocumentViewer.cpp
===================================================================
RCS file: /cvsroot/mozilla/content/base/src/nsDocumentViewer.cpp,v
retrieving revision 1.147
diff -u -r1.147 nsDocumentViewer.cpp
--- nsDocumentViewer.cpp 2001/09/20 12:13:48 1.147
+++ nsDocumentViewer.cpp 2001/09/20 19:16:39
@@ -2849,7 +2849,7 @@
} else if (mPrt->mPrintFrameType == nsIPrintOptions::kFramesAsIs) {
if (aPO->mFrameType == eFrame || aPO->mFrameType == eIFrame) {
- height = pageHeight*kHundredPagesHigh;
+ //height = pageHeight*kHundredPagesHigh;
adjRect.SetRect(aPO->mRect.x != 0?margin.left:0, aPO->mRect.y != 0?margin
.top:0, width, height);
}
Summary: Printing CS Forum message results in broken printing. → [FIX]Printing CS Forum message results in broken printing.
Whiteboard: Fix in hand
Assignee | ||
Comment 2•23 years ago
|
||
Here is the other part of the patch:
Index: nsSimplePageSequence.cpp
===================================================================
RCS file: /cvsroot/mozilla/layout/html/base/src/nsSimplePageSequence.cpp,v
retrieving revision 3.47
diff -u -r3.47 nsSimplePageSequence.cpp
--- nsSimplePageSequence.cpp 2001/07/25 07:52:15 3.47
+++ nsSimplePageSequence.cpp 2001/09/21 19:25:46
@@ -307,6 +307,13 @@
pageSize.height = 0x0FFFFFFF;
}
+ // *** Special Override ***
+ // if this Document is in the upper left hand corner
+ // we need to suppress the top margin or it will reflow too small
+ if (adjSize.x == 0 && adjSize.y == 0) {
+ suppressTopMargin = PR_TRUE;
+ }
+
// only use this local margin for sizing,
// not for positioning
nsMargin margin(suppressLeftMargin?0:mMargin.left,
Assignee | ||
Comment 3•23 years ago
|
||
Assignee | ||
Comment 4•23 years ago
|
||
Here is what happened:
When I originally wrote the code I didn't realize that sub-docs printing at 0,0
were not suppressing the top margin and therefore were reflowing too small. I
add the hack for setting the pages to be a large value to compensate for this,
thinking that is just what needed to be done. But this didn't work in all cases
which is why we got this bug.
So the fix is to remove the "5 page height" hack and then have a special case
for when we are printing a page at 0,0 when isn't the entire page height and
width.
Comment 5•23 years ago
|
||
Comment on attachment 50301 [details] [diff] [review]
final patch
sr=attinasi - I'm glad you figured it out!
Attachment #50301 -
Flags: superreview+
Comment 6•23 years ago
|
||
Attachment #50301 -
Flags: review+
Assignee | ||
Comment 7•23 years ago
|
||
I have done a lot of testing of this, it only happens when printing
"AsIs" with framesets and iframes. It also only effects the top frame that is
positioned at 0,0.
Low to medium risk, if I didn't catch something it means the top frame will
print smaller than it should.
Comment 8•23 years ago
|
||
Updated status
Whiteboard: Fix in hand → Has review/super-review waiting for PDT approval
Comment 9•23 years ago
|
||
ok, lets get this in. a=chofmann
Whiteboard: Has review/super-review waiting for PDT approval → PDT+
Assignee | ||
Comment 10•23 years ago
|
||
fixed and checked in on branch and tip
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Updated•23 years ago
|
Whiteboard: PDT+ → [from bugscape] PDT+
Comment 11•23 years ago
|
||
I'll verify this in 9/26 build.
Comment 12•23 years ago
|
||
When printing with "As Laid out on the screen option" it prints fine..I get
all the frames
But, when selecting "Each Frame separately", it takes forever
to get the print job to come out. I had to Cancel the print job...
Rod, any ideas whats going on here?
Comment 13•23 years ago
|
||
even after trying to cancel the print job, the print manager
doesn't go away.
looks like trying to print each frame separately is exhausting
this particular print job. I'm gonna reboot and try again.
Comment 14•23 years ago
|
||
ok this time I waited for the print job to coem out.
it eventually came out and there's definitely a
problem when chosing "print each frame separately"
for this page(follow Rod's instructions going to that
particular page). I don't get all the content
for each frame..Instead I just get buttons and icons
for each frame printed...
AsIs option works fine.
REOPENING
I'm using 9/26 branch build.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Comment 15•23 years ago
|
||
okay I tried again and this time the print job never came out(print manager
still alive)
but I noticed something:
The prior time I had all 3 radio buttons available to me to select. I chose
print each frame separately. the print job came out eventually.
But when I had only 2 radio buttons available(AsIs and Print each frame Sep.)
then the print job never came out.
Comment 16•23 years ago
|
||
works for Rods.....moving to FIXED..I need to try on another
NT system with more memory and fast machine.
if it works there, then I will open a separate bug.
Status: REOPENED → RESOLVED
Closed: 23 years ago → 23 years ago
Resolution: --- → FIXED
Comment 17•23 years ago
|
||
verified in 9/27 branch build.
however on my Win98 laptop it takes forever to print
and the output is not correct....memory problems I think.
I will reopen a new bug for that.
also I will remember to verify this bug on the trunk.
Status: RESOLVED → VERIFIED
Comment 18•23 years ago
|
||
verified on 10/31 trunk build also.
Comment 19•23 years ago
|
||
Tested with 11_14_22_0.9.4ec branch build onWin2000. Could not reproduce this
bug. Printed 'As laid out on the screen' with no problem; printed 'Each frame
separately' (10 of them) with no problem and no extended waiting time.
Comment 20•23 years ago
|
||
Tested with 11_14_22_0.9.4ec branch build onWin98. Printed 'As laid out on the
screen' with no problem. However, with the 'Each frame separately' (10 of them),
all frames did not print out completely.
Comment 21•23 years ago
|
||
Sujay - is this really fixed on the trunk? Your 9/27 comments say:
however on my Win98 laptop it takes forever to print and the output is not
correct....memory problems I think.
Do these comments apply to the branch and the trunk?
Comment 22•23 years ago
|
||
is this fixed verified on the trunk? if that's the case then we should make it
0.9.4+, if not could somebody verify it on the trunk?
Comment 23•23 years ago
|
||
verified on 11/29 trunk build using Windows
Comment 25•23 years ago
|
||
Tested with 11_29_09_trunk on Win98. Printing frames separately causes app to
crash on Win98. Need to see if this is written up separately in another bug.
Comment 26•23 years ago
|
||
Retested on same 11_20_09_trunk build on Win98. Now, the app doesn't crash but I
can only print 6 frames. It looks like it will either crash or print out less
than the full number of frames when the 'Each Frame Separately' option is
selected. Reopening again.
Status: VERIFIED → REOPENED
Resolution: FIXED → ---
Comment 27•23 years ago
|
||
Not printing all of the frames might be fixed by recent table checkins on the
trunk.
Comment 28•23 years ago
|
||
Karnaze: I tested usingthe 11/29 trunk - are the table changes you mention after
that date?
Comment 29•23 years ago
|
||
I was referring to comment #26. The last table changes went in 2001/11/29
15:41:07. They wouldn't fix the crash you are reporting, but might help the
other problem.
Comment 30•23 years ago
|
||
looks like this is REOPEN...lemme know what action I need to take..
Comment 31•23 years ago
|
||
removing plus for now. looks too risky.
Comment 32•23 years ago
|
||
Whiteboard: [from bugscape] PDT+ → [bugscape 8511] PDT+
Comment 33•23 years ago
|
||
minusing this for edt0.9.4. taking this at this point is too risky.
Comment 34•23 years ago
|
||
Can we set the target milestone to mozilla0.9.7 or above ?
(Please have a look at www.MozillaQuest.com . I think its not good for the image
of moz.)
Comment 35•23 years ago
|
||
Could someone please retarget this to another milestone? Mozilla 0.9.5 is long gone.
Comment 36•23 years ago
|
||
This is fixed on the trunk. Closing bug WFM.
Status: REOPENED → RESOLVED
Closed: 23 years ago → 23 years ago
Resolution: --- → WORKSFORME
Target Milestone: mozilla0.9.5 → mozilla1.0
Comment 38•23 years ago
|
||
verified.
You need to log in
before you can comment on or make changes to this bug.
Description
•