Closed
Bug 348461
Opened 19 years ago
Closed 19 years ago
SessionStore ignores certain browser windows
Categories
(Firefox :: General, defect)
Tracking
()
RESOLVED
FIXED
Firefox 2
People
(Reporter: zeniko, Assigned: zeniko)
Details
(Keywords: fixed1.8.1)
Attachments
(1 file)
|
1.36 KB,
patch
|
dietrich
:
review+
beltzner
:
approval1.8.1+
|
Details | Diff | Splinter Review |
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.
| Assignee | ||
Comment 1•19 years ago
|
||
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.
Comment 2•19 years ago
|
||
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?
| Assignee | ||
Comment 3•19 years ago
|
||
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).
Updated•19 years ago
|
Attachment #233383 -
Flags: review?(dietrich) → review+
| Assignee | ||
Updated•19 years ago
|
Whiteboard: [checkin needed]
Target Milestone: --- → Firefox 2 beta2
Comment 4•19 years ago
|
||
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
Updated•19 years ago
|
Target Milestone: Firefox 2 beta2 → Firefox 2
Updated•19 years ago
|
Flags: blocking-firefox2? → blocking-firefox2+
Comment 5•19 years ago
|
||
Comment on attachment 233383 [details] [diff] [review]
fix
a=beltzner on behalf of 181drivers
Attachment #233383 -
Flags: approval1.8.1+
| Assignee | ||
Updated•19 years ago
|
Whiteboard: [baking] → [checkin needed (1.8 branch)]
Updated•19 years ago
|
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.
Description
•