Closed
Bug 122765
Opened 23 years ago
Closed 22 years ago
Mozilla loses focus and Z order due to Alert / other dialogs
Categories
(SeaMonkey :: UI Design, defect)
Tracking
(Not tracked)
VERIFIED
FIXED
mozilla0.9.9
People
(Reporter: bugzilla, Assigned: danm.moz)
References
Details
(Keywords: regression)
Attachments
(2 files, 1 obsolete file)
(deleted),
patch
|
Details | Diff | Splinter Review | |
(deleted),
text/html
|
Details |
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.8+)
Gecko/20020128
BuildID: 20020128
Press CTRL + F. Search for a word you know does not exist in the document. "The
text you entered was not found" pops up. Press OK, then press Cancel on the Find
dialog and Mozilla looses focus.
Reproducible: Always
Comment 1•23 years ago
|
||
I can confirm this, using 2002 01 30 03 / win2k. Very annoying indeed!
May the summary should be re-phrased? Mozilla not only looses focus,
but lowers the Z level of the window, i.e. when the dialog "Find in this Page"
is dismissed the Mozilla window is placed _behind_ another window (often a
non-Mozilla one).
Comment 2•23 years ago
|
||
It seems that this only happens if the "Alert" dialog
"The text you entered was not found" has been issued.
Been seeing this today. Win XP Pro build 2002013003.
There's one thing that really bothers me about searching. If you click on a
browser window (which I do all the time to get focus away from a form or
something), then any search starts from that point, not from the beginning of
the document like it does in IE. I like the behavior in IE better where it only
starts from a point if there is actually something (text) selected there. If
there's no visual clue of what is selected you don't have any idea where that
point is! More than once, I've had to open IE just to verify a search result.
Combine that with this bug and you can get a pretty confusing situation.
Sorry for the off-topic rant. I'm sure there is a reason for that search
functionality.
Comment 4•23 years ago
|
||
Blake, there is another bug discussing the behavior you describe, though I don't
have the number handy. (If you want to search for it, I'm probably cc'd, and
the summary probably has 'find' in it) I agree that we should only start the
search within the document if there is a selection, because there needs to be
an obvious visual cue. Hidden find cursors are not in most user's model of how
the browser works.
->bryner
Assignee: trudelle → bryner
Comment 5•23 years ago
|
||
blake: bug 87037
all: If it helps track down the problem, another way to easily reproduce this is
to bring up the Find dialog, switch to another application, switch back to Moz,
and cancel the Find. The application that was switched to takes focus.
Confirming. Win2k 2002020409
Status: UNCONFIRMED → NEW
Ever confirmed: true
Updated•23 years ago
|
QA Contact: sairuh → pmac
re-summarizing
Summary: Mozilla looses focus due to Finder → Mozilla loses focus and Z order due to Find Dialog
Comment 8•23 years ago
|
||
*** Bug 122870 has been marked as a duplicate of this bug. ***
Comment 9•23 years ago
|
||
*** Bug 124649 has been marked as a duplicate of this bug. ***
Comment 10•23 years ago
|
||
I think this problem also occurs with the certificates alert box. When visiting
the URL in bug 124742, I followed the reporter's step to reproduce. I could not
repoduce the crash, but at the Submit Resume page, I clicked the Next button and
a certificate dialog was shown. After viewing the problem certificate and
accepting it, the dialog was dismiss, and mozilla was dropped in the z-order.
Since I've accepted the certificate I can't reproduce the z-order behavior, and
I don't know of any other certificate test cases off hand. Hope this helps.
Comment 11•23 years ago
|
||
*** Bug 124696 has been marked as a duplicate of this bug. ***
Comment 12•23 years ago
|
||
*** Bug 124909 has been marked as a duplicate of this bug. ***
Assignee | ||
Comment 13•23 years ago
|
||
stacked dialog focus regression. mine.
Assignee: bryner → danm
Target Milestone: --- → mozilla0.9.9
Assignee | ||
Comment 14•23 years ago
|
||
code to activate the parent was shot in the back a few revs ago. this puts it
back. Note this only fixes the problem as originally reported. Dean's
observation from comment 5 remains unfixed. There was a time when that too
worked, but a bunch of evil focus regressions (see bug 54936) caused us to
partially back that out, and the comment 5 situation was one of the casualties.
Assignee | ||
Comment 15•23 years ago
|
||
.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Comment 16•23 years ago
|
||
*** Bug 125167 has been marked as a duplicate of this bug. ***
Comment 17•23 years ago
|
||
Verified (commercial build; 2002-02-21-08-trunk)
Status: RESOLVED → VERIFIED
Comment 18•23 years ago
|
||
yeah, worksforme now.
Comment 19•23 years ago
|
||
I see this same behavior with the dialog for subscribing to newsgroups.
Should this be re-opened, or a new bug filed?
Comment 20•23 years ago
|
||
OK, not just the Subscribe Dialog. Also Alerts, such as when you type in a URL
for a host that does not exist.
Re-opening and re-summarizing, based on comment #2
If this is a different bug, a new one can be opened I guess.
Status: VERIFIED → REOPENED
Resolution: FIXED → ---
Summary: Mozilla loses focus and Z order due to Find Dialog → Mozilla loses focus and Z order due to Alert / other dialogs
Comment 21•23 years ago
|
||
*** Bug 128493 has been marked as a duplicate of this bug. ***
Comment 23•23 years ago
|
||
*** Bug 128703 has been marked as a duplicate of this bug. ***
Comment 24•23 years ago
|
||
In Mail&News, any 'standard' alert like unsubscibe, move to next folder etc causes Mozilla to
lose focus. Very annoying.
Updated•23 years ago
|
Keywords: mozilla1.0
Comment 25•23 years ago
|
||
I'm seeing this on build 2002030316, on the 0.9.9 branch, on Windows 2000. It's
happened to me on a "new unsigned site certificate" dialog, all javascript
alerts, the "Mozilla can remember this password" dialog, and all login dialogs,
whether login is successful or not. This is *without* switching apps while the
dialog is open, as mentioned in <a HREF="#c5">comment 5</a>; it seems to happen
with every dialog, no matter what. If I find exceptions, I'll post them.
Comment 26•23 years ago
|
||
seeing this with mail/news (any popup), browser -- "Find in this page" (when
something I'm searching cannot be found)
Comment 27•23 years ago
|
||
How about r= and sr= on that patch?
/be
Comment 28•23 years ago
|
||
Bug 128874 is a multi-OS bug that is probably a dupe of this. If so, someone
please change from W2K and dupe bug 128874.
Comment 29•23 years ago
|
||
Brendan: that patch has already been applied. It doesn't cure the situation.
Updated•23 years ago
|
OS: Windows 2000 → All
Comment 30•23 years ago
|
||
*** Bug 128874 has been marked as a duplicate of this bug. ***
Comment 31•23 years ago
|
||
Win32 installer build 20020227 worked fine and 20020228 is busted.
Comment 32•23 years ago
|
||
Weird. It seems to me that backing out the change done in bug 54936 (only took
out the lines from nsXULWindow::ActivateParent()) fixes this, which is funny,
because 54936 was supposed to do so. I gather that the modal window system has
changed recently, right? Could it have affected this? I also tried many of
54936's blocked bugs and didn't notice problems there either (with this backed
out version). Hmm?
Comment 33•23 years ago
|
||
*** Bug 129082 has been marked as a duplicate of this bug. ***
Comment 34•23 years ago
|
||
*** Bug 129130 has been marked as a duplicate of this bug. ***
Comment 35•23 years ago
|
||
*** Bug 129142 has been marked as a duplicate of this bug. ***
Comment 36•23 years ago
|
||
*** Bug 129105 has been marked as a duplicate of this bug. ***
Comment 37•23 years ago
|
||
*** Bug 129062 has been marked as a duplicate of this bug. ***
Comment 38•23 years ago
|
||
*** Bug 129156 has been marked as a duplicate of this bug. ***
Assignee | ||
Comment 39•23 years ago
|
||
This looks like the same problem, but actually it's completely different. This
regression was caused by a change in the order in which a modal window is made
invisible as it's destroyed and the modal window's parent is re-enabled. This
patch puts it back the way it used to be and adds a big "keep it that way"
comment to reduce future confusion.
Comment 40•23 years ago
|
||
Comment on attachment 72743 [details] [diff] [review]
change order of modal window invisibility and parent re-enabling
sr=jag
Attachment #72743 -
Flags: superreview+
Comment 41•23 years ago
|
||
Comment on attachment 72743 [details] [diff] [review]
change order of modal window invisibility and parent re-enabling
r=bryner
Attachment #72743 -
Flags: review+
Comment 42•23 years ago
|
||
I stand corrected. And learned something new again :)
Comment 43•23 years ago
|
||
This bug seemed to emerge just after the fix for bug 116074 was checked in.
Could they be related?
Comment 44•23 years ago
|
||
*** Bug 128510 has been marked as a duplicate of this bug. ***
Updated•23 years ago
|
Comment 45•23 years ago
|
||
Comment on attachment 72743 [details] [diff] [review]
change order of modal window invisibility and parent re-enabling
a=asa (on behalf of drivers) for checkin to the 0.9.9 branch and the 1.0 trunk
Attachment #72743 -
Flags: approval+
Assignee | ||
Comment 46•23 years ago
|
||
Patch is in 0.99 and trunk.
Ere: the fix for bug 22658 is a brute force thing; a little too brute. The fix
for bug 54936 makes it a little less brute. Cranking up the bruteness by
unfixing 54936 would indeed have fixed this problem and a couple of others as
well, but also would have rained down focus hell. Thanks for taking a look, though.
Cormac: no, actually I caused this regression with the patch for bug 126786.
The asymmetry of parent enabling bothered me. I probably knew better once. Now
the asymmetry is flanked by massive comments encouraging me to keep it that way.
And 126786 is no worse off.
Status: REOPENED → RESOLVED
Closed: 23 years ago → 23 years ago
Resolution: --- → FIXED
Comment 47•23 years ago
|
||
*** Bug 129313 has been marked as a duplicate of this bug. ***
Comment 48•23 years ago
|
||
*** Bug 128772 has been marked as a duplicate of this bug. ***
Comment 49•23 years ago
|
||
Verified on windows 98 (commercial build: 2002-03-07-05-trunk)
Status: RESOLVED → VERIFIED
Comment 50•23 years ago
|
||
*** Bug 129517 has been marked as a duplicate of this bug. ***
Comment 51•23 years ago
|
||
*** Bug 129523 has been marked as a duplicate of this bug. ***
Comment 52•23 years ago
|
||
*** Bug 129598 has been marked as a duplicate of this bug. ***
Comment 53•23 years ago
|
||
*** Bug 129363 has been marked as a duplicate of this bug. ***
Comment 54•23 years ago
|
||
Build 20020307 Win2K: almost perfect, although I noticed the following:
- one Navigator window and Mail & Newsgroups open
- put invalid url to the url bar
- focus Windows desktop
- wait for the alert
- click Ok
--> Mail & Newsgroups window is focused. This seems to happen always if focus is
on desktop when the alert fires.
Well, I think it's not so bad because Windows desktop doesn't have focus so
often and this didn't seem to happen if the focus was in another program.
Comment 55•23 years ago
|
||
*** Bug 129661 has been marked as a duplicate of this bug. ***
Comment 56•23 years ago
|
||
*** Bug 129664 has been marked as a duplicate of this bug. ***
Comment 57•23 years ago
|
||
*** Bug 129741 has been marked as a duplicate of this bug. ***
Comment 58•23 years ago
|
||
*** Bug 129748 has been marked as a duplicate of this bug. ***
Reporter | ||
Comment 59•23 years ago
|
||
Try this testcase, every 3 seconds you will get an alert. Press ok at least one
time and then ALT + TAB to another application. Now when you go back to mozilla
every time you press OK Mozilla will loose focus.
Reporter | ||
Comment 60•23 years ago
|
||
Reopening bug, run testcase to see that bug still appears.
Status: VERIFIED → REOPENED
Resolution: FIXED → ---
Comment 61•23 years ago
|
||
I don't see the mentioned behavior on the M0.9.9 on linux.
Reporter | ||
Comment 62•23 years ago
|
||
Cannot reproduce with latest build on Windows Xp.
Maybe Windows 2000 only? I am using Windows 2000 SP2 build 20020313.
Comment 63•23 years ago
|
||
I'm using Win2000 with SP2 with mozilla 0.9.9 BuildID: 2002031104 and it doesn't
happen anymore.
Comment 64•23 years ago
|
||
Running the test in comment 59 shows me the bug. System is Win2000 Server SP1
with Mozilla build 2002031104.
Comment 65•23 years ago
|
||
I can reproduce a similar bug to that in comment #59.
1. File/Open File
2. Start Notepad
3. Cancel the open file dialog
4. File/Open Web Location
5. Start Notepad again
6. Cancel the open web location dialog
After step 3, control returns to the browser window.
But after step 6, contorl switches to notepad.
Comment 66•23 years ago
|
||
*** Bug 131694 has been marked as a duplicate of this bug. ***
Comment 67•23 years ago
|
||
In Linux, with 0.9.9 (including 03/20 nightly build) open mail application.
Mail loads, then the Z-Order is altered putting the browser up.
While the mail application is running, the browser acts flakey. clicking on a
link will cause that page to load, then rapidly load to the FIRST page in the
current browser window cache. You can then click the back button to visit the
page you wanted. Behavior goes away when the mail window is closed.
Behavior
Page A - Start page.
Assume history of
A -> B -> C
On Page C click to D. Page D appears then rapidly cycles back to A
A -> B-> C -> D -> A is the current history.
Didn't work this way in 0.9.8. Assume issue was created with Z-order changes.
Comment 68•23 years ago
|
||
*** Bug 132842 has been marked as a duplicate of this bug. ***
Comment 69•23 years ago
|
||
you could also see a variation of the other focus bugs out there.. one is
Mail/News steals focus which is a totally seperate bug than the Z-order bug.
Comment 70•23 years ago
|
||
Comment on attachment 72743 [details] [diff] [review]
change order of modal window invisibility and parent re-enabling
obsoleting checked in patch.
Attachment #72743 -
Attachment is obsolete: true
Comment 71•23 years ago
|
||
Bug still appears... in the mail application, turn the side bar on, go to the
history tab. Close it. Reopen mail (so that it queries the history section),
z-order problem still happens. But if you change the mail sidebar tab to
Search, close and reopen, the Zorder problem doesn't happen.
Comment 72•23 years ago
|
||
I see this behaviour (linux, build 20020424):
- Open the Mail component;
- Turn on the sidebar (if it is already on, click F9 twice);
Immediately, the Browser is raised in front of the Mail window.
Reporter | ||
Comment 73•22 years ago
|
||
Easy way to reproduce:
1. When Quicklauch is active, rightclick and select Disable Quicklauch.
2. Mozilla pops up an alert informing you how to reactivate
3. Press OK --> Moz loses focus
Reporter | ||
Updated•22 years ago
|
Keywords: mozilla1.1
Comment 74•22 years ago
|
||
Updating target to next available milestone while ccing myself.
Target Milestone: mozilla0.9.9 → mozilla1.2alpha
Comment 75•22 years ago
|
||
Never change the target milestone field if you are not the assigned person.
Target Milestone: mozilla1.2alpha → mozilla0.9.9
Comment 76•22 years ago
|
||
Okay, lesson learnt, and appologies for any offense caused. But is there really
any harm moving it forward when the target is clearly passed? And moreover what
is the point changing it back to that milestone when someone will just have to
move it forward again? My thinking was that it would simply draw the attention
of the owner and perhaps save them from moving it forward if 1.2a happened to be
what they wanted. They can easily push that back even further if needed.
Anyway, next time I will just comment. Sorry ... :(
Comment 77•22 years ago
|
||
worksforme using winxp and 1.1a
Comment 78•22 years ago
|
||
I think we should mark this bug as resolved again. Comment 59 is bug 155002,
which is a much more manageable bug than this beast. If any other issues come
up, new bugs can be filed if they aren't already.
Comment 79•22 years ago
|
||
I agree, Dean. Resolving as fixed due to comment 78.
Status: REOPENED → RESOLVED
Closed: 23 years ago → 22 years ago
Resolution: --- → FIXED
Comment 80•22 years ago
|
||
verified on windows 2k (netscape trunk build: 2002-08-07-08-TRUNK)
Status: RESOLVED → VERIFIED
Comment 81•22 years ago
|
||
OK, so should I file a new bug to cover comment 65?
Comment 82•22 years ago
|
||
Neil: doesn't hurt, although it may very well be a dupe of bug 155002.
Updated•20 years ago
|
Product: Core → Mozilla Application Suite
You need to log in
before you can comment on or make changes to this bug.
Description
•