Closed
Bug 65974
Opened 24 years ago
Closed 24 years ago
first window after start is below all other open windows
Categories
(Core :: XUL, defect, P2)
Tracking
()
VERIFIED
FIXED
mozilla0.9.2
People
(Reporter: r_pollak, Assigned: markh)
References
(Blocks 1 open bug)
Details
(Keywords: access, helpwanted)
Attachments
(3 files)
6.59 KB,
patch
|
Details | Diff | Splinter Review | |
6.41 KB,
patch
|
Details | Diff | Splinter Review | |
8.99 KB,
patch
|
Details | Diff | Splinter Review |
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; m18) Gecko/20010117
BuildID: 2001011704
Reproducible: Always
Steps to Reproduce:
1) Open some application windows
2) Start Mozilla from the start menu
3) Wait until Mozilla has started - do not click anywhere else
Actual Results: The mozilla window is concealed by the others.
Expected Results: The mozilla window is in front of other windows.
I know this since I know bugzilla, so there should already be a bug filed - but
I couldn't find it (and I tried!). If you find it, tell me how you did it.
Odd. I can't find an older duplicate bug, either. I guess it's just been one of
those "well known problems." We've taken a couple of stabs at fixing this one and
never quite figured it out. And like before, though annoying, I still don't have
time to work on it. Futuring, marking helpwanted.
Reporter | ||
Comment 3•24 years ago
|
||
I'd like to try fixing this - but since I never helped with mozilla development
before, I have to get the code and a local build running first, so please be
patient.
Comment 4•24 years ago
|
||
I don't think this should be futured so quickly. This is a failure of
fundamental expected behavior, people affected by this are very likely to not
know where Netscape went. Really. Also, it is an accessiblity issue.
Keywords: access
Target Milestone: Future → ---
Reporter | ||
Comment 5•24 years ago
|
||
I have now built mozilla on my machine from 2001-02-10-08-Mtrunk/mozilla-
source.tar.gz, and I have problems reproducing the bug with this.
When I start %MOZ_SRC%\mozilla\dist\WIN32_D.OBJ\bin\mozilla.exe from a cmd
shell, I see a different behaviour to the installed mozilla:
The splash screen is displayed correctly in front of all windows, and the
browser window is opened just behind the shell and in front of all other app
and explorer windows. The shell window gets the focus again in the moment the
spash screen is closed/the browser window is opened.
Can I build mozilla-win32-installer.exe? If yes: how?
Reporter | ||
Comment 6•24 years ago
|
||
diary of a newbie:
Today I tried to find the code that opens the browser window.
1) Stepping through mozilla.exe didn't help me - I don't get deeper than the
event loop in |nsAppShell::Run|.
2) I searched for usages of the Microsoft Foundation Class |CWnd| - but I didn't
find any relevant ones. Are there other ways to create windows windows?
3) I looked at http://www.mozilla.org/docs/ (RTFM if nothing else helps:), and I
got the impression that window creation is probably somewhere in xpfe. So I
browsed the mozilla/xpfe/ source directory, but again couldn't find anything
useful.
Can anyone give me a hint how to proceed?
(I'm really willing to learn, so I hope the hint is not: Keep away from this,
you wannabe coder ...)
Reporter | ||
Comment 7•24 years ago
|
||
Should the keyword 'mozilla1.0' be added to put this bug on the radar?
I think for many people mozilla1.0 will be the first mozilla they see (due to
the expected press coverage). This bug is very visible immediately at startup.
And, you know: the first impression counts.
(I increased the severity to 'Minor', since this bug annoys me several times a
day.)
Severity: trivial → minor
Comment 8•24 years ago
|
||
I agree that we need to get this fixed, so adding the mozilla1.0 as suggested,
but I'm not sure if this will make danm's top 10 list of fenestral fixes.
As for where to look, I am naive about this area (window creation), but I
throw out a couple of starters (well, actually, these are more like personal
guesses than solid advice :-).
First, no, you won't find any MFC in this code base (aside from perhaps some
specialized case, and the MFC example of embedding the layout/networking
engine).
Second, as the saying goes, LXR is your friend. <http://lxr.mozilla.org>. You
can browse and search through the code this way and figure out where you want
to set a breakpoint. I would start with the native implementation of the window
class and figure out how it is called and from where.
http://lxr.mozilla.org/seamonkey/source/widget/src/windows/nsWindow.cpp
You also might look at http://www.mozilla.org/xpfe/xptoolkit/windows.html, if
you haven't already, although some of that information is likely out of date.
Keywords: mozilla1.0
Comment 9•24 years ago
|
||
Well, I see that danm is reshuffling some window opening code at the moment.
You might want to look at the big, shiny new comment at the top of
http://lxr.mozilla.org/mozilla/source/xpfe/bootstrap/nsWindowCreator.cpp
for some info on window opening.
Comment 11•24 years ago
|
||
clearing target for re-triage, bumping severity to normal. I think we may have
to fix this for 0.9.2 at least.
Comment 12•24 years ago
|
||
->jag/moz0.9.2
Assignee: danm → jaggernaut
Target Milestone: --- → mozilla0.9.2
Comment 13•24 years ago
|
||
*** Bug 84907 has been marked as a duplicate of this bug. ***
Assignee | ||
Comment 14•24 years ago
|
||
Assignee | ||
Comment 15•24 years ago
|
||
Adding Bill Law - hoping he can review the attached patch.
Comment 16•24 years ago
|
||
could you, instead of using the WindowMediatorCID, use
NS_RDF_DATASOURCE_CONTRACTID_PREFIX "window-mediator" ?
http://lxr.mozilla.org/seamonkey/source/xpfe/appshell/src/nsAppShellFactory.cpp#72
It's the ContractID, which should generally be preferred over the ClassID (CID).
Otherwise this looks okay to me, comments make sense, and code looks like it
should work, but get some Windows jock to scrutinize this :-)
Patch tested, works as it was said it would, r=jag with the above changes made
(I'll post a patch for that, even).
Comment 17•24 years ago
|
||
I see now you moved that NS_DEFINE_CID line up from lower in the file. Still,
since we're touching it, might as well fix it.
Comment 18•24 years ago
|
||
I just want to say '*kiss*' :-]
Patch works for me on win2k and on win98, for splash, profilemanager, windows
integration alert dialogs and browser window, during startup. It even does
a nice 'flashing' in the icon tray, if you intentionally raise another window
while it starts (for prof and browser on 2k, but just for prof on 98; the
browser window always forces to the top on 98).
Comment 19•24 years ago
|
||
Comment 21•24 years ago
|
||
(er, oops. minor correction: the windows integration alert does not come to the
front on 2k, but that's a relatively minor defect, since that dialog will not
typically show for an end user [treat it as a separate bug]).
Comment 22•24 years ago
|
||
sr=hyatt
Comment 23•24 years ago
|
||
this might be related to bug 66866 ?
Assignee | ||
Comment 24•24 years ago
|
||
FYI - there is still a problem when starting a second "instance" of mozilla -
the newly opened window is not in the foreground. I've opened bug 85860 for
that.
Comment 25•24 years ago
|
||
Excellent work. Thanks.
Should we try to combine the (now) three sets of code in this module that get
recent windows from the window mediator? It would have to take a PRUnichar* and
nsIDOMWindowInternal** and could be either a static function or a static member
of nsNativeAppSupportWin. That's the only improvement I would suggest. I
should have done that when I wrote the *second* instance of that code, but
better late than never. BTW, I think we'll have need for that function to fix
some other bugs.
Comment 26•24 years ago
|
||
Assignee | ||
Comment 27•24 years ago
|
||
Jag's new patch still works for me :) So now all we need are one or 2 r=, and
we are off and running! Bill - you willing to add your stamp of approval?
Status: NEW → ASSIGNED
Comment 28•24 years ago
|
||
Certainly; r=law.
Assignee | ||
Comment 29•24 years ago
|
||
Mail sent to drivers seeking a=
Comment 30•24 years ago
|
||
a= asa@mozilla.org for checkin to the trunk.
(on behalf of drivers)
Blocks: 83989
Assignee | ||
Comment 31•24 years ago
|
||
Checked in:
/cvsroot/mozilla/xpfe/bootstrap/nsNativeAppSupportWin.cpp,v <--
nsNativeAppSupportWin.cpp
new revision: 1.26; previous revision: 1.25
->FIXED :)
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Comment 32•24 years ago
|
||
verified fixed with win32 6/20 build. Thanks Mark!
Status: RESOLVED → VERIFIED
Comment 33•23 years ago
|
||
*** Bug 54701 has been marked as a duplicate of this bug. ***
You need to log in
before you can comment on or make changes to this bug.
Description
•