Closed Bug 229392 Opened 21 years ago Closed 21 years ago

Random cleanup in session history code

Categories

(Core :: DOM: Navigation, defect)

defect
Not set
minor

Tracking

()

VERIFIED FIXED

People

(Reporter: keeda, Unassigned)

Details

Attachments

(1 file)

I was looking through some session history code and found a bit of code that is seems useless and can trivially be eliminated. I'll shortly attach a patch that eliminates it.
This patch does 2 things - Move all of nsSHistory::PrintHistory() which is clearly debug code into #ifdef DEBUG - Elimiate code related to lrvList attribute in nsISHTransaction. This seems to have been an attempt to implement some kind of branching in session history instead of the current linear implemenation. In any case, its never worked and has always been disabled going back to even very early versions in cvs.
Comment on attachment 137958 [details] [diff] [review] Get rid of some code Radha does not seem to be around anymore. Adam, bz, could you please review?
Attachment #137958 - Flags: superreview?(bz-vacation)
Attachment #137958 - Flags: review?(adamlock)
Alec would probably also be a good reviewer.
Comment on attachment 137958 [details] [diff] [review] Get rid of some code looks reasonble. sr=bzbarsky
Attachment #137958 - Flags: superreview?(bz-vacation) → superreview+
Can you review this Alec? I'll not request r= from you directly since it's not my bug...
Comment on attachment 137958 [details] [diff] [review] Get rid of some code nice - just make sure nsISHEntry isn't frozen. And assuming it is not frozen, make sure to rev the IID for the interface before landing.
Attachment #137958 - Flags: review?(adamlock) → review+
er nsISHTransaction I guess, not nsISHEntry - in any case, always rev the IID when you change an interface.
Checked in with nsISHTransaction IID change. (And yes, I had already checked that it was not frozen.) Thanks for the reviews. (And thanks to stephend for the reminder, I had forgotten I that I needed to poke someone for this review.)
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Verified FIXED using LXR.
Status: RESOLVED → VERIFIED
Component: History: Session → Document Navigation
QA Contact: docshell
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: