Closed Bug 84232 Opened 23 years ago Closed 23 years ago

Opening the preferences dialog from a parallel browser window resets the current pref session

Categories

(Core :: Preferences: Backend, defect, P2)

defect

Tracking

()

VERIFIED FIXED
mozilla0.9.3

People

(Reporter: jbetak, Assigned: bugs)

References

Details

(Keywords: dataloss, Whiteboard: fixed and verified on trunk. needs branch a=)

Attachments

(2 files)

THis problem has been most recently observed in conjunction with a patch for bug 65251. Here are the relevant comments: "If you attempt to select "Preferences" in your new browser instance, you original pref dialog will be reset... I know this is only a remote possibility, but it still needs to be considered." ... "The problem you were seeing with opening prefs resetting the pref session has been happening for some time - the pref window is not application modal, only window-modal, and so if you have two browser windows up (likely) or even a browser and a mail window up (also likely) then invoking the pref window twice will reset the session. The code above checks for an existing window and focuses it, which should bring it, and its parent window to the front."
accepting, moving to 0.9.3, marking as blocker for 65251
Blocks: 65251
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla0.9.3
why the preference is window modal intead of app model ?
reassign to ben
Assignee: jbetak → ben
Status: ASSIGNED → NEW
nav triage team: Marking nsbeta1+ and p2
Keywords: nsbeta1+
Priority: -- → P2
Strictly speaking the preferences *window* shouldn't be modal at all. (See Mac IE). But that's something to deal with after RTM. Applying patch into tree. Adding dataloss keyword as this could be quite irritating.
Status: NEW → ASSIGNED
Keywords: dataloss
What was happening is each time the user invoked the preferences dialog, a call to openDialog would be made opening the preferences dialog XUL file as a named window. When this happens, any existing preferences dialog is essentially reloaded , user changes are lost. What this patch does is obtain the window-mediator (which keeps track of open windows of a particular type) and look for any existing open preferences windows (that is, windows with the windowtype attribute on their <window> XUL element set to "mozilla:preferences"). If one is found, it is focused. Otherwise, a new one is opened.
Fix checked in on trunk.
Whiteboard: needs branch a=
nav triage team: Marking nsBrnach since the fix is done
Keywords: nsBranch
QA please verify on trunk.
Keywords: vtrunk
Whiteboard: needs branch a= → fixed on trunk. needs branch a=
testing recipe: 0. let's say your default home page is http://bugzilla.mozilla.org 1. have two browser windows open, at two different pages. eg, window A at http://yahoo.com and window B at http://bugzilla.mozilla.org 2. from window A, open the prefs dialog. 3. click "Use Current Page" button in the Navigator panel so that yahoo.com becomes the default home page. 4. click in window B to bring it to the front. 5. open the prefs dialog from window B. results: focus is moved to the prefs dialog opened from window A, and the setting made at step (3) to change the home page is not clobbered. vrfy'd fixed using the following comm trunk builds: linux 2001.07.05.08 winnt 2001.07.05.09 mac 2001.07.05.08 - n/a, since the pref dialog here is modal, i cannot switch to another browser window removing vtrunk kw.
Keywords: vtrunk
*** Bug 75729 has been marked as a duplicate of this bug. ***
Whiteboard: fixed on trunk. needs branch a= → fixed and verified on trunk. needs branch a=
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Keywords: nsBranch
Resolution: --- → FIXED
out of branch consideration now.
okay, since this won't be checked into the branch, will mark as vrfy'd.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: