Closed Bug 6058 Opened 25 years ago Closed 24 years ago

Closing the prefs window activates the wrong browser window

Categories

(Core :: XUL, defect, P1)

x86
Windows NT
defect

Tracking

()

VERIFIED DUPLICATE of bug 22658
Future

People

(Reporter: steve.beitzel, Assigned: danm.moz)

References

Details

If you have multiple browser windows open and then open the prefs window,
then when you close the prefs window the most recently opened browser window
becomes active, not the most recently active browser window.

Steps to reproduce:
1. launch apprunner.exe
2. open a new browser window
3. now, there are two browser windows open. Drag the second one aside.
4. From the first browser, select Preferences from the Edit menu.
5. Close the preferences window by clicking on the close box.
6. Note that the second browser window is activated, not the first.
Updating QA Contact from paulmac to cpratt
Assignee: shuang → german
Can you check this out or should it be reassigned to someone else?
Assignee: german → don
Agreed the proper behavior is to switch the active window back to the most
recently active browser window upon concluding prefs.
Sorry to assign more stuff to Don, but you will know best who in your group
works on this for now.
Assignee: don → mcmullen
Priority: P3 → P1
Target Milestone: M7
We can fix this in M7.
Assignee: mcmullen → danm
Component: Pref UI → XP Toolkit/Widgets
I don't think this is my bug. I don't do anything with window activation, I just
request a prefs window, and tell it to close itself. Maybe danm can enlighten us?

Changing component from prefs to XP Toolkit/Widgets and reassigning to danm.
Target Milestone: M7 → M9
Disagreeing with Don's statement that "we" can fix this in M7.  It's annoying, but it's not
breaking anything.  Postponing.
Status: NEW → ASSIGNED
Target Milestone: M9 → M10
Target Milestone: M10 → M12
mass-moving all m12 bugs to m13
Target Milestone: M13 → M14
Blocks: 18455
Target Milestone: M14 → M15
*** Bug 20999 has been marked as a duplicate of this bug. ***
Blocks: 20999
QA Contact: cpratt → sairuh
spam: reassigning QAcontact to me, and added matt and don to cc list...
Depends on: 22658
No longer blocks: 20999
No longer blocks: 18455
No longer depends on: 22658
This looks fixed to me -- build 2000011314/Win98.
[also removing spurious dependencies]
Okay, this might sound strange, but I see a similar thing happening on my
machine right now.

I go to preferences/Mail & Newsgroups and set the color for quoted text.  When I
click the OK button to close the preferences, the active browser window drops to
the back (bringing the window immediately behind it to the front).

(Build 2000030116/Win98)
I see that, too. It's fixed in the general case (where we have a parent window), 
but the act of making a selection in a color popup in a modal dialog confuses 
things so the modal window's parent gets sent to the background when the modal 
window itself is closed. Har. That's just silly.
No longer blocks: 22658
Depends on: 22658
Target Milestone: M15 → M17
*** Bug 32843 has been marked as a duplicate of this bug. ***
Mass moving M17 bugs to M18
Target Milestone: M17 → M18
->jrgm.
QA Contact: sairuh → jrgm
*** Bug 7862 has been marked as a duplicate of this bug. ***
*** Bug 33117 has been marked as a duplicate of this bug. ***
mass-moving all bugs to m21 that are not dofood+, or nsbeta2+
Target Milestone: M18 → M21
Target Milestone: M21 → Future
Adding correctness and mostfreq keywords (look at the DUPs for more DUPs
if you have any doubt). Gerv, use your judgement - most of those DUPs were
filed back when closing the prefs dialog *always* activated the wrong window.

Quoting from bug 22658, "Closing some dialogs activates the wrong window::
 > ------- Additional Comments From Matthew Thomas 2000-02-10 18:05 ------ ...
 > * Preferences dialog: fixed, *except* where you open a dialog from within
 >   the prefs window, and then close it. Examples:
 >   - `Choose File' in Navigator pane
 >   - `View Stored Cookies' in Advanced > Cookies pane.
 >   When the prefs dialog is eventually closed, the Mozilla window underneath
 >   disappears behind whatever window was just under it. I'm pretty sure this 
 >   is a regression.

Testing with 2000-08-01-04-M17 on WinNT, the behaviour is still exactly as
Matthew described it. Sairuh, isn't there another bug about problems with
non-modal windows over modal windows causing problems?
I've you've nominated it, Sean, that's good enough for me :-)

Gerv
Why is this so hard to fix?
Go for it.


*** This bug has been marked as a duplicate of 22658 ***
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → DUPLICATE
marking verified. dialog parent windows problem.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.