Closed Bug 241214 Opened 21 years ago Closed 21 years ago

Trap while clicking on CLOSE button of Print Preview.

Categories

(SeaMonkey :: General, defect)

x86
OS/2
defect
Not set
critical

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: ssachinr, Assigned: mkaply)

References

()

Details

(Keywords: crash, fixed1.7)

Attachments

(1 file)

User-Agent: Mozilla/5.0 (OS/2; U; Warp 4.5; en-US; rv:1.7b) Gecko/20040325 Build Identifier: Mozilla/5.0 (OS/2; U; Warp 4.5; en-US; rv:1.7b) Gecko/20040325 Open www.amazon.com in the browser. Launch the Print Preview window when the page is completely loaded. Clicking on the CLOSE button of Print Preview results in trap and abnormal termination of the browser. Reproducible: Always Steps to Reproduce: 1. Open www.amazon.com in the browser. 2. Open Print Preview window 3. Click on the "CLOSE" button to close the Print Preview window. Actual Results: The browser traps with abnormal termination. Expected Results: Print Preview window gets closed. Trap screen Info: 04-21-2004 19:49:44 SYS3186 PID 00c0 TID 0001 Slot 0042 F:\MOZILLA\17B\MOZILLA.EXE c000009d 00290158 EAX=011bfbf8 EBX=012289c0 ECX=011f9340 EDX=011f9340 ESI=012289c0 EDI=01228960 DS=0053 DSACC=d0f3 DSLIM=3fffffff ES=0053 ESACC=d0f3 ESLIM=3fffffff FS=150b FSACC=00f3 FSLIM=00000030 GS=0000 GSACC=**** GSLIM=******** CS:EIP=005b:00290158 CSACC=d0df CSLIM=3fffffff SS:ESP=0053:0012d964 SSACC=d0f3 SSLIM=3fffffff EBP=0012d980 FLG=00012216 LIBC05.DLL
I have debugged this problem. The problem is in routine GetParent() which is in nsWindow.cpp file. The trap occurs while accesing mParent(line #1128), as the Parent window is in the state of destruction. In GetParent() routine, the IF condition shown below, tagged with "241214" solves the problem. However I will refine the changes and upload the patch soon. 1126 if( nsnull != mParent) 1127 { if(mParent->mIsDestroying) //241214 return nsnull; //241214 1128 NS_ADDREF(mParent); 1129 widget = mParent; 1130 }
Attached patch Fix for problemSplinter Review
Add support for mOnDestroyCalled Fix a few other bugs as well - initialize mIsDestroying remove unused variable - mHackDestroyWnd
Assignee: general → mkaply
Status: UNCONFIRMED → ASSIGNED
Attachment #146695 - Flags: review?(pedemont)
Attachment #146695 - Flags: review?(pedemont) → review+
Comment on attachment 146695 [details] [diff] [review] Fix for problem sr=blizzard (platform specific) a=mkaply (OS/2 only)
Attachment #146695 - Flags: superreview+
Attachment #146695 - Flags: approval1.7+
Keywords: crash
Fix checked in.
Status: ASSIGNED → RESOLVED
Closed: 21 years ago
Keywords: fixed1.7
Resolution: --- → FIXED
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: