Closed
Bug 134769
Opened 22 years ago
Closed 22 years ago
Hidden FrameSet Frames causes crash after Print Preview - Trunk [@ nsDocument::~nsDocument]
Categories
(Core :: Print Preview, defect)
Tracking
()
VERIFIED
FIXED
mozilla1.0
People
(Reporter: DomIncollingo, Assigned: rods)
References
()
Details
(Keywords: crash, testcase, topcrash+, Whiteboard: [adt1][FIXED_ON_TRUNK])
Crash Data
Attachments
(4 files, 2 obsolete files)
95.97 KB,
image/jpeg
|
Details | |
69.70 KB,
image/jpeg
|
Details | |
64.79 KB,
image/jpeg
|
Details | |
9.42 KB,
patch
|
dcone
:
review+
attinasi
:
superreview+
asa
:
approval+
|
Details | Diff | Splinter Review |
From Bugzilla Helper: User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.9+) Gecko/20020329 BuildID: 2002032916 Print preview crashes Mozilla at http://www.s1.com/ if landscpape mode is chosen and the refresh (Reload) button is selected after the print preview window is closed. Reproducible: Always Steps to Reproduce: 1.Navigate to http://www.s1.com/ 2.Choose File / Print Preview 3.Click on the Landscape button (in the print preview menu bar) 4.Close print preview (click on the Close buton in the print preview menu bar). 5.Click on the Reload button (on the browser toolbar) 6.Mozilla crashes. Expected Results: Mozilla should not crash. Please see talkback incident TB4713856Q. Using Mozilla build 2002032916 on Win 2K. Earlier in the day, I tried using build 2002040103. Same result: crash. Talkback incident TB4710881W.
Comment 1•22 years ago
|
||
Stephen, should I ask you for TB4710881W?
0x00030005 nsDocument::~nsDocument [d:\builds\seamonkey\mozilla\content\base\src\nsDocument.cpp, line 493] nsHTMLDocument::~nsHTMLDocument [d:\builds\seamonkey\mozilla\content\html\document\src\nsHTMLDocument.cpp, line 372] nsHTMLDocument::`scalar deleting destructor' nsDocument::Release [d:\builds\seamonkey\mozilla\content\base\src\nsDocument.cpp, line 601] nsHTMLDocument::Release [d:\builds\seamonkey\mozilla\content\html\document\src\nsHTMLDocument.cpp, line 376] nsCOMPtr_base::~nsCOMPtr_base [d:\builds\seamonkey\mozilla\xpcom\glue\nsCOMPtr.cpp, line 65] PresShell::`scalar deleting destructor' nsCOMPtr_base::assign_with_AddRef [d:\builds\seamonkey\mozilla\xpcom\glue\nsCOMPtr.cpp, line 74] nsCOMPtr_base::assign_with_AddRef [d:\builds\seamonkey\mozilla\xpcom\glue\nsCOMPtr.cpp, line 70] nsDocShell::Destroy [d:\builds\seamonkey\mozilla\docshell\base\nsDocShell.cpp, line 2622] 0x088b0674
Comment 3•22 years ago
|
||
WFM. Build ID: 2002 03 27 08. Windows 2000. Default printer, if that matters: "HP LaserJet 4050 Series PCL 6"
Comment 4•22 years ago
|
||
This is a dupe of bug 127639. I think we should reopen bug 127639.
Reporter | ||
Comment 5•22 years ago
|
||
Not sure if this is a dupe of bug 127639 (which I also reported). In bug 127639, Mozilla was crashing when I tried to open the print preview window. I was not able to successully open the print preview window or to print the page. I am now able to open the print preview page and to print the screen. The crash in but 134769 occurs after I close the print preview window and click on the browser's Reload button.
Reporter | ||
Comment 6•22 years ago
|
||
I tried duplicating this bug using Mozilla 0.9.9 monthly build running on a different computer (Win NT). I went to http://www.s1.com/, selected print preview, clicked on the landscape icon, closed print preview, and clicked the Reload button. Mozilla does not crash in 0.9.9. However, clicking on the landscape button causes the print preview screen image to disappear - a blank white screen is displayed. (I also reported this problem as bug 128171). In build 2002032916, the problem with landscape orientation (bug 128171) has been resolved. The screen image displays correctly in print preview landscape mode. But the browswer crashes when print preview is closed and Reload is selected.
Comment 7•22 years ago
|
||
Reporter, in comment 5 you say, "I am now able to open the print preview page and to print the screen." Do you mean you printed the screen? Or do you mean you printed the page?
Reporter | ||
Comment 8•22 years ago
|
||
Reporter | ||
Comment 9•22 years ago
|
||
Reporter | ||
Comment 10•22 years ago
|
||
Reporter | ||
Comment 11•22 years ago
|
||
Perhaps some pictures can help explain this. Here is what I did: 1) Navigated to http://www.s1.com/. Attachment id 77357 shows how the site rendered. 2) Chose File / Print Preview. 3) Clicked on the Landscape button while in the Print Preview window. Attachment id 77358 shows how the image in the Print Preview window rendered after I hit the Landscape button. 4) Pressed the Print button in the upper left corner of the Print Preview window. 5) AFTER I hit the Print button, I used the scroll bar in the Print Preview window to scroll down slightly. I then noticed that the word "Error 404" appeared in the upper left of the image in the Print Preview window. Attachment id 77359 illustrates. The "Error 404" did NOT appear until I pressed the Print button. Despite the "Error 404", the page did print correctly, although it printed as two sheets of paper. The first sheet simply contained the "Error 404" message; the second sheet contained the image of the web page. 6) Pressed the Close button in the upper right of the Print Preview window. The Print Preview window closed and the browser window displayed. 7) Pressed the Reload button in the browser window. 8) The browser crashed. Please see TalkBack incident #TB4754489Q. I tried this procedure three times, and the browser crashed all three times. Also, please note the bar graph that displayed in the original browser window (attachment 77357 [details]). This graph did not appear in the Print Preview window (attachments 77358 and 77359). However, this bar graph DID print on my hardcopy after I hit the Print button in the Print Preview window. Finally, I tried retesting without actually printing the page: i.e., I followed the procedure listed above but SKIPPED steps 4 and 5. I tried this three times, but the browser crashed on only one of the three tests. Please see TalkBack incident #TB4754569M. All tests conducted today used build 2002040203 on Win 2K.
Comment 12•22 years ago
|
||
*** Bug 135174 has been marked as a duplicate of this bug. ***
Comment 13•22 years ago
|
||
I was able to crash using the steps mentioned in comment #0. I was also able to crash without refreshing the page (I think): Incident ID 4797470 Stack Signature 0x00000080 8867c2e9 Trigger Time 2002-04-03 17:34:28 Email Address jpatel@netscape.com URL visited http://www.s1.com/ Build ID 2002040210 Product ID MozillaTrunk Platform Operating System Win32 Module Trigger Reason Access violation User Comments i don't know...i did a print preview and then didn't reload like last time...i just closed the tab...and went to open mail. trunk builds have sucked for the last few days... Stack Trace 0x00000080 nsDocument::~nsDocument [d:\builds\seamonkey\mozilla\content\base\src\nsDocument.cpp, line 493] nsHTMLDocument::~nsHTMLDocument [d:\builds\seamonkey\mozilla\content\html\document\src\nsHTMLDocument.cpp, line 372] nsHTMLDocument::`scalar deleting destructor' nsDocument::Release [d:\builds\seamonkey\mozilla\content\base\src\nsDocument.cpp, line 601] nsHTMLDocument::Release [d:\builds\seamonkey\mozilla\content\html\document\src\nsHTMLDocument.cpp, line 376] nsDOMEvent::~nsDOMEvent [d:\builds\seamonkey\mozilla\content\events\src\nsDOMEvent.cpp, line 270] nsWebShell::QueryInterface [d:\builds\seamonkey\mozilla\docshell\base\nsWebShell.cpp, line 266] 0x04050b55 Either way, this is definitely a problem. Confirming to New. Adding testcase, topcrash+ keywords and nominating for nsbeta1.
Comment 14•22 years ago
|
||
Adding Trunk [@ nsDocument::~nsDocument] to summary for tracking. This is showing up under the nsDocument::~nsDocument stack signature as well as different 0xXXXXXXXX addresses in Talkback data.
Summary: Print preview crashes after landscape / refresh at http://www.s1.com/ → Print preview crashes after landscape / refresh at http://www.s1.com/ - Trunk [@ nsDocument::~nsDocument]
Comment 15•22 years ago
|
||
The steps to reproduce this are fairly simple...here is my latest crash with today's build: Incident ID 4839921 Stack Signature nsDocument::~nsDocument b6cfb46e Trigger Time 2002-04-04 19:14:06 Email Address jpatel@netscape.com URL visited http://www.s1.com/ Build ID 2002040411 Product ID MozillaTrunk Platform Operating System Win32 Module Trigger Reason Access violation User Comments 1. went to http://www.s1.com/ 2. print preview 3. close print preview 4. reload http://www.s1.com/ page. 5. crash! It's that simple for me with today's build. Stack Trace nsDocument::~nsDocument [d:\builds\seamonkey\mozilla\content\base\src\nsDocument.cpp, line 493] nsHTMLDocument::~nsHTMLDocument [d:\builds\seamonkey\mozilla\content\html\document\src\nsHTMLDocument.cpp, line 376] nsHTMLDocument::`scalar deleting destructor' nsDocument::Release [d:\builds\seamonkey\mozilla\content\base\src\nsDocument.cpp, line 601] nsXMLDocument::Release [d:\builds\seamonkey\mozilla\content\xml\document\src\nsXMLDocument.cpp, line 257] nsDOMEvent::~nsDOMEvent [d:\builds\seamonkey\mozilla\content\events\src\nsDOMEvent.cpp, line 270] nsWebShell::QueryInterface [d:\builds\seamonkey\mozilla\docshell\base\nsWebShell.cpp, line 266] 0x0012fc08 I don't think printing the page or changing the page orientation has any effect...just closing print peview and reloading is enough to get a crash.
Comment 16•22 years ago
|
||
As it turns out...you don't even have to reload the page after closing the print preview window. I simply clicked the back button to get back to this bug (after closing the print preview) and it crashed.
Updated•22 years ago
|
Assignee | ||
Updated•22 years ago
|
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla1.0
Assignee | ||
Comment 17•22 years ago
|
||
The s1 site has the height of the top frame in the frameset to 100% and the second to '*' rows="100%,*" this causes the second frame to be hidden. It's beyond me why you would do this... But then frames with style set to "visibility:hidden" crash also.
Summary: Print preview crashes after landscape / refresh at http://www.s1.com/ - Trunk [@ nsDocument::~nsDocument] → Hidden FrameSet Frames causes crash after Print Preview
Assignee | ||
Comment 18•22 years ago
|
||
Add a new attr to PrintObject for identifying POs that are to be hidden, not reflowed. So if a frameset frame's root frame is zero height then we mark it hidden and not to be printed. This patch also fixes a regression from 6.2 where when printing selection it prints in the top margin of the second (or third, etc.) page. It also removes some very unwanted printfs from the PrintPreviewListener.h
Assignee | ||
Comment 19•22 years ago
|
||
I have tested frameset frames that are "hidden" and those that get not "row height" from the frameset tag. I have test this also with all forms of print preview and printing. And printing while in print preview.
Assignee | ||
Comment 20•22 years ago
|
||
The previous patch inclued a fix that just got checked in, this is a cleaner patch. (See comments from previous patch)
Attachment #78342 -
Attachment is obsolete: true
Comment 21•22 years ago
|
||
Do not remove the Stack Signature information. This is key for tracking topcrash bugs.
Summary: Hidden FrameSet Frames causes crash after Print Preview → Hidden FrameSet Frames causes crash after Print Preview - Trunk [@ nsDocument::~nsDocument]
Comment 22•22 years ago
|
||
Comment on attachment 78344 [details] [diff] [review] new patch I would like you to put parens around the binary ands...... I think there are 2 of them. r=dcone aFlags & eSetPrintFlag
Attachment #78344 -
Flags: review+
Comment 23•22 years ago
|
||
Comment on attachment 78344 [details] [diff] [review] new patch sr=attinasi
Attachment #78344 -
Flags: superreview+
Assignee | ||
Comment 24•22 years ago
|
||
Made changes ready for final review.
Attachment #78344 -
Attachment is obsolete: true
Assignee | ||
Comment 25•22 years ago
|
||
Comment on attachment 78483 [details] [diff] [review] patch added patch to wrong bug
Attachment #78483 -
Attachment is obsolete: true
Assignee | ||
Comment 26•22 years ago
|
||
Comment on attachment 78344 [details] [diff] [review] new patch This is the good patch, accidently added patch to a different bug
Attachment #78344 -
Attachment is obsolete: false
Comment 27•22 years ago
|
||
Pls land this on the trunk to bake for a few days, have QA look, and make sure there are no regressions introduced, then come back to us for approval - ADT1
Comment 28•22 years ago
|
||
Removing adt1.0.0. Pls renominate, once this has landed on the trunk, and QA has verified that this patch doesn't break us.
Keywords: adt1.0.0
Comment 29•22 years ago
|
||
Comment on attachment 78344 [details] [diff] [review] new patch a=asa (on behalf of drivers) for checkin to the 1.0 branch
Attachment #78344 -
Flags: approval+
Assignee | ||
Comment 30•22 years ago
|
||
fixed on trunk
Assignee | ||
Updated•22 years ago
|
Whiteboard: [adt1] → [adt1][trunk]
Updated•22 years ago
|
Whiteboard: [adt1][trunk] → [adt1][FIXED_ON_TRUNK]
Comment 31•22 years ago
|
||
sujay: Could you verify the fix on the trunk? Thanks!
Assignee | ||
Comment 32•22 years ago
|
||
fxied
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Comment 33•22 years ago
|
||
verified on 4/15 trunk build. does not crash anymore.
Status: RESOLVED → VERIFIED
Comment 34•22 years ago
|
||
adt1.0.0+ (on ADT's behalf) for checkin into the 1.0 branch. Pls check this in to the branch today. After it is checked in, pls add fixed1.0.0. Once QA has verified it on the branch, then add verified1.0.0.
Assignee | ||
Updated•22 years ago
|
Keywords: fixed1.0.0
Comment 35•22 years ago
|
||
verified on 4/17 branch build. adding "verified1.0.0" keyword
Keywords: verified1.0.0
Updated•13 years ago
|
Crash Signature: [@ nsDocument::~nsDocument]
You need to log in
before you can comment on or make changes to this bug.
Description
•