Closed Bug 81728 Opened 24 years ago Closed 24 years ago

crash after clicking on link in an Image Map - Trunk [@ NS_MakeAbsoluteURI][@ gklayout!nsQueryReferent::operator=]

Categories

(Core :: Layout, defect, P1)

defect

Tracking

()

VERIFIED FIXED
mozilla0.9.1

People

(Reporter: dev+mozilla, Assigned: attinasi)

References

()

Details

(Keywords: crash, dataloss, topcrash, Whiteboard: has r=,sr= and a=. ready for checkin to 0.9.1)

Crash Data

Attachments

(4 files)

From Bugzilla Helper: User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9+) Gecko/20010517 BuildID: 2001051720 Reproducible: Always Steps to Reproduce: 1. visit URL 2. click on "Fach- und Führungskräfte" Actual Results: crash in ntdll!RtlTraceDatabaseEnumerate which is called by gklayout!nsQueryReferent::operator= Expected Results: no crash
Keywords: crash, mozilla0.9.2
Attached file Dr. Watson log
After I tried again, I had a different crash (in gklayout!NS_NewFrameImageLoader).
I'll take this for now: I can reproduce the problem, though my crash is in a different spot, and I have a patch. I'm not at the root of the problem yet. Basically, what I see is that the imageFrame loses it base URI after it is clicked, and we are not checking that the base URI is null. My change is to simply check for a base URI that is null before processing it in the mouse handler code - this prevents the crash, but I need to figure out why this is happening. Patch coming... BTW: I fear that there is something more heinous happening, like maybe the imageFrame has lost its document or something. CC'ing Pavlov in case he knows about this.
Status: NEW → ASSIGNED
Priority: -- → P1
Target Milestone: --- → mozilla0.9.2
Oliver, can you try the testcase I attached and tell me if it causes the same problem for you? Thanks.
Yep, same problem (as the 2nd stacktrace).
r=pavlov
Moving this up to 0.9.1 and taking it over. This is happening in other sites too (click the powerbook picture at http://store.apple.com/1-800-MY-APPLE/WebObjects/AppleStore) - probably any image map... I think the problem is simply that the mouse-move is being handled after the map has been partially torn down due to the click. Whenever I see the bad baseURI, it is on a MOUSE_MOVE not a MOUSE_UP. This is happening now because the image frame is now being kept around after the click has caused the navigation to the new page since we now hold around the frames until the new page is loaded. cc'ing hyatt since that is stuff he put together I think. The fix is easy enough, safe enough, and the crash common enough to merit consideration for 0.9.1 (IMO).
Assignee: karnaze → attinasi
Status: ASSIGNED → NEW
OS: Windows 2000 → All
Hardware: PC → All
Summary: crash after clicking on link [@ gklayout!nsQueryReferent::operator=] → crash after clicking on link in an Image Map [@ gklayout!nsQueryReferent::operator=]
Target Milestone: mozilla0.9.2 → mozilla0.9.1
*** Bug 79114 has been marked as a duplicate of this bug. ***
Dude, that is the most brilliant test case since the one on Bug 79114 !! http://bugzilla.mozilla.org/showattachment.cgi?attach_id=35905
;) - I really should search for dups before I go fixin' things...
Status: NEW → ASSIGNED
Whiteboard: patch reviewed. need sr.
sr=hyatt
adding topcrash keyword and Trunk [@ NS_MakeAbsoluteURI] to summary for tracking...since bug 79114 was marked a dup.
Keywords: topcrash
Summary: crash after clicking on link in an Image Map [@ gklayout!nsQueryReferent::operator=] → crash after clicking on link in an Image Map - Trunk [@ NS_MakeAbsoluteURI][@ gklayout!nsQueryReferent::operator=]
*** Bug 82594 has been marked as a duplicate of this bug. ***
Copying keywords from duplicate bug 82594: dataloss, nsbeta1
Keywords: dataloss, nsbeta1
a= asa@mozilla.org for checkin to 0.9.1
*** Bug 82743 has been marked as a duplicate of this bug. ***
Whiteboard: patch reviewed. need sr. → has r=,sr= and a=. ready for checkin to 0.9.1
*** Bug 82559 has been marked as a duplicate of this bug. ***
Fix in: /cvsroot/mozilla/layout/html/base/src/nsImageFrame.cpp,v <-- nsImageFrame.cpp new revision: 1.177; previous revision: 1.176 done
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
*** Bug 82923 has been marked as a duplicate of this bug. ***
Marking verified in the May 29th build.
Status: RESOLVED → VERIFIED
Crash Signature: [@ NS_MakeAbsoluteURI] [@ gklayout!nsQueryReferent::operator=]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: