Closed Bug 348461 Opened 19 years ago Closed 19 years ago

SessionStore ignores certain browser windows

Categories

(Firefox :: General, defect)

2.0 Branch
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 2

People

(Reporter: zeniko, Assigned: zeniko)

Details

(Keywords: fixed1.8.1)

Attachments

(1 file)

Steps to reproduce: 1. Run Firefox twice in immediate succession 2. Navigate to a different page in both windows 3. Kill Firefox (or restart having browser.startup.page == 3) Actual result: Only one of both windows is restored.
Attached patch fixSplinter Review
The issue is that for performance reasons we register windows in two different ways: the first through nsISessionStore.init and all others through a domwindowopened observer registered during init. This makes SessionStore miss all windows opened before the first call to init (except the first window calling init itself). This patch ensures that all browser windows calling init with itself as the argument are really tracked.
Assignee: nobody → zeniko
Status: NEW → ASSIGNED
Attachment #233383 - Flags: review?(dietrich)
In the code, I see how this *could* happen. However, I'm not actually able to make it occur! Are you missing a step in the reproduction steps above?
I don't think so. What could make a difference is that my computer is somewhat dated (P-III). You'll have to make sure to launch Firefox twice with as little time in between as possible (and, of course, that it isn't running at that time).
Attachment #233383 - Flags: review?(dietrich) → review+
Whiteboard: [checkin needed]
Target Milestone: --- → Firefox 2 beta2
mozilla/browser/components/sessionstore/src/nsSessionStore.js 1.40
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Flags: blocking-firefox2?
Resolution: --- → FIXED
Whiteboard: [checkin needed] → [baking]
Version: unspecified → 2.0 Branch
Target Milestone: Firefox 2 beta2 → Firefox 2
Flags: blocking-firefox2? → blocking-firefox2+
Comment on attachment 233383 [details] [diff] [review] fix a=beltzner on behalf of 181drivers
Attachment #233383 - Flags: approval1.8.1+
Whiteboard: [baking] → [checkin needed (1.8 branch)]
Keywords: fixed1.8.1
Whiteboard: [checkin needed (1.8 branch)]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: