Closed Bug 305995 Opened 19 years ago Closed 19 years ago

crash going back from onunload trap [@ nsDocShell::RestoreFromHistory] [@ nsDocShell::CreateContentViewer]

Categories

(Core :: DOM: Navigation, defect)

1.8 Branch
defect
Not set
critical

Tracking

()

VERIFIED FIXED

People

(Reporter: jruderman, Assigned: bryner)

References

Details

(Keywords: crash, verified1.8, Whiteboard: [needs review+SR bzbarsky])

Crash Data

Attachments

(2 files)

TB8722232Z
Severity: normal → critical
Keywords: crash
Testcase stolen from bug 305978.
Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8b4) Gecko/20050825
Firefox/1.0+

Only happens when bfcache is enabled.

Steps to reproduce:
1. Click the link to the testcase (attachment 193872 [details]).
2. Click the back button.

Result: boom.
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8b4) Gecko/20050825
Firefox/1.0+ ID:2005082514

TB8723769Z
TB8723764E (wgianopoulos)
TB8723858 (ispiked)
Summary: crash going back from onunload trap → crash going back from onunload trap [@ nsDocShell::RestoreFromHistory] [@ nsDocShell::CreateContentViewer]
OS: MacOS X → All
Hardware: Macintosh → All
Flags: blocking1.8b4?
Flags: blocking1.8b4? → blocking1.8b4+
Flags: blocking1.8b4rc+
Bryner - since it looks to be bfcache related can you take a look?
Assignee: nobody → bryner
Attached patch patchSplinter Review
This patch doesn't attempt to address bug 251944, it just keeps us from
crashing in the fastback case.	If any type of load happens that changes mLSHE,
we'll stop the restore.  At this point we haven't done anything that commits us
to finishing the restore.  As I understand it, the request for the document we
started to restore should be removed from the loadgroup via nsDocLoader::Stop()
if a new load is started.
Attachment #194148 - Flags: superreview?(bzbarsky)
Attachment #194148 - Flags: review?(bzbarsky)
Flags: blocking1.8b4rc+
Whiteboard: [needs review+SR bzbarsky]
Attachment #194148 - Flags: superreview?(bzbarsky)
Attachment #194148 - Flags: superreview+
Attachment #194148 - Flags: review?(bzbarsky)
Attachment #194148 - Flags: review+
checked in on trunk.
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Attachment #194148 - Flags: approval1.8b4?
verified on trunk with Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1)
Gecko/20050901 Firefox/1.6a1

no crash...
bug 251944 still present; can't go back from the testcase page.
Status: RESOLVED → VERIFIED
Attachment #194148 - Flags: approval1.8b4? → approval1.8b4+
checked in on the branch
Keywords: fixed1.8
verified on Firefox 1.4 -mozilla1.8 branch- Win, Lin and Mac : 2005-09-07
Keywords: fixed1.8verified1.8
Component: History: Session → Document Navigation
QA Contact: history.session → docshell
Crash Signature: [@ nsDocShell::RestoreFromHistory] [@ nsDocShell::CreateContentViewer]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: