Closed
Bug 8277
Opened 26 years ago
Closed 26 years ago
Two asserts in session history on startup
Categories
(SeaMonkey :: UI Design, defect, P1)
Tracking
(Not tracked)
VERIFIED
FIXED
M7
People
(Reporter: sfraser_bugs, Assigned: radha)
Details
nsSessionHistory::nsSessionHistory() causes an assert because the following
initializer:
mHistoryEntries = (nsVoidArray)0;
is just bogus.
mHistoryEntries is an nsVoidArray, not nsVoidArray*. And you *must* init
an mHistoryEntries with >0 entries, otherwise is asserts (which is
what happens now).
Reporter | ||
Comment 1•26 years ago
|
||
There's more. Lots of place fail to return nsresults.
Warning : return value expected
nsSessionHistory.cpp line 366 }
Warning : return value expected
nsSessionHistory.cpp line 886 return;
Warning : return value expected
nsSessionHistory.cpp line 942 return;
Warning : return value expected
nsSessionHistory.cpp line 1268 }
Warning : return value expected
nsSessionHistory.cpp line 1336 }
Warning : return value expected
nsSessionHistory.cpp line 1346 }
Assignee | ||
Updated•26 years ago
|
Status: NEW → ASSIGNED
Target Milestone: M7
Assignee | ||
Comment 2•26 years ago
|
||
Shall look into it.
Reporter | ||
Comment 3•26 years ago
|
||
nsHistoryEntry also does the same bad (nsVoidArray)0 thing.
I'm going to check in some fixes for this tonight, unless someone stops me.
Reporter | ||
Comment 4•26 years ago
|
||
Fixes checked in. I just commented out both lines that looked like:
something = (nsVoidArray)0;
Comment 5•26 years ago
|
||
I checked in the fixes for the "Warning : return value expected"
radha, please review what I did.
Assignee | ||
Updated•26 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 6•26 years ago
|
||
marking fixed.
Updated•26 years ago
|
Status: RESOLVED → VERIFIED
Comment 7•26 years ago
|
||
marking verififed based on developer input
Updated•21 years ago
|
Product: Core → Mozilla Application Suite
You need to log in
before you can comment on or make changes to this bug.
Description
•