Closed Bug 45805 Opened 25 years ago Closed 24 years ago

Splash Screen fails to get focus and falls to background

Categories

(SeaMonkey :: UI Design, defect, P3)

x86
Windows 2000
defect

Tracking

(Not tracked)

RESOLVED FIXED
mozilla0.9.3

People

(Reporter: thomas.swan, Assigned: law)

References

Details

Attachments

(1 file)

When Mozilla starts the splash is pushed to the background (behind existing windows) instead of the foreground (in front of existing windows.) OS: Windows 2000 Mozilla Builds: (All Win32; nightly and milestone) This has occured for the last few milestones and all nightly builds for an extremely long time.... (I vaguely recall when it did come up to the foreground) This is cosmetic, but it would be nice to have this work correctly.
marking worksforme. works on w2k, nt, 98, & mac
Status: UNCONFIRMED → RESOLVED
Closed: 25 years ago
Resolution: --- → WORKSFORME
reopening
Status: RESOLVED → UNCONFIRMED
Resolution: WORKSFORME → ---
confirming. splash screen shows up in the foreground if you use -console but goes to the background if you just run mozilla.exe with no options
Status: UNCONFIRMED → NEW
Component: Browser-General → XP Apps
Ever confirmed: true
reassigning to xp apps default owner
Assignee: asa → don
*** Bug 56691 has been marked as a duplicate of this bug. ***
Also, the Select User Profile and TMHC Proxy dialog windows do not get the focus. This is especially frustrating when I don't get the Select User Profile dialog, but I do get the TMHC Proxy dialog. If I have other windows open, I have to guess when this dialog appears and click on Mozilla in the Toolbar in order to enter my username & password.
Looks like a duplicate of Bug 29172
Since Don has left, Vishy is taking his bugs in bulk, pending reassignment. thanks, Vishy
Assignee: don → vishy
I just reinstalled build 2000120720 from scratch (including deleting my user profile), and the behavior changed. The Splash Screen and Proxy dialog boxes now come to the front, but the Proxy dialog box still does not get the focus. The behavior of the console window described in Bug 29172 is still the same: the console window still comes up in front of the other Mozilla windows.
nav triage team: So we minused 29172, but we gotta look at some of these window ordering issues. Marking nsbeta1, mozilla0.9.1, reassigning to law, adding danm to cc
Assignee: vishy → law
Keywords: nsbeta1
Target Milestone: --- → mozilla0.9.1
Using Win2k, I usually start "mozilla -mail", and it comes up with a dialog to enter my mail password. However, neither the main window nor the dialog has focus when they arrive, and often they are behind other windows. The browser doesn't get focus either if I start it by running "mozilla". This has been true as long as I've been using mozilla builds (several months), but I did notice when I used NS6.0/6.01 that it *does* grab focus when it starts. Feel free to paste this into bug 29172 if it's more appropriate there.
nav triage team: This is annoying, marking nsbeta1+
Keywords: nsbeta1nsbeta1+
as discussed in team meeting, moving all Nav+ team members nsbeta1+ P3 bugs from mozilla0.9.1 to mozilla0.9.2.
Target Milestone: mozilla0.9.1 → mozilla0.9.2
This WFM with a recent build on Win98. I can believe there might be problems if you're using "-console" or maybe even running a debug build (in which case Mozilla is a console application). Are people still seeing problems here?
My entire comment from 4/5 is still true. Mozilla never gets the focus when it starts, and it usually starts behind other windows. I get win32-installer builds a few times a week. Sounds win2000-specific.
Eric, are you starting from a cmd-line prompt or by double-clicking a program icon or shortcut? Do you see the same thing with "mozilla" as with "mozilla -mail"? I'll try on Win2k next week and see if it behaves differently there.
The same thing happens when the installer launches it at the end of the install, and when I run mozilla from a command line, windows explorer, the desktop shortcut, or my "mozilla -mail" quicklaunch bar shortcut, on a laptop with win2k professional and a desktop with win2k server (and different video drivers etc., of course). Starting from a command line or windows explorer, the command line or windows explorer window keeps focus and stays on top of the splash screen and mozilla window. Starting from the desktop shortcuts, the mozilla window still doesn't get focus but it seems random where it falls in the z-order.
Just for a sanity check I fired up the old win95 laptop, and this wfm just fine there (win32-installer 2001-0602-22-trunk, starting from installer or desktop icon). So it is specific to win00. Well, I haven't tried it on NT4, but haven't seen any reports of it there either.
When I filed this one... I remembered checking on Windows 98 and Windows 95 and it worked on them. I believe that's why I marked it Windows 2000 only :-) I'm glad someone is double checking...
nav triage: nice to have, not an rtm stopper. moving out to 0.9.3.
Target Milestone: mozilla0.9.2 → mozilla0.9.3
just a hint guys: MS changed the way SetForegroundWindows works on Win 2000. Take a look at http://msdn.microsoft.com/library/psdk/winui/windows_1eev.htm and you'll know what I'm talking about. I had this trouble before as I worked on some GUI issues for the previous comapany I worked for. Also take a look at AllowSetForegroundWindow. This is a win 2000 issue and it needs a little bit of trick-work to get arround it. I observed that also the main window of mozilla has this problems. Start mozilla from explorer dblclicking on mozilla.exe
SetForgroundWindow certainly has changed in Win2k - however, in most cases we meet the documented requirements - the foreground process will generally have started mozilla (be that explorer or a command prompt). See bug 29172 for a similar patch that does fix the problem when started from explorer. Does for me anyway :)
Patch added to bug 65974 also corrects this.
Just checked in fix to bug 65974 - so this should be fixed. Leaving to bug owner to verify and mark as such.
Waiting for a nightly to come out... Then will check... ;)
marking fixed in line with mark hammonds comments.
Status: NEW → RESOLVED
Closed: 25 years ago24 years ago
Resolution: --- → FIXED
Seems to do the trick for me... :) Thanks all!
Product: Core → Mozilla Application Suite
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: