Closed Bug 50665 Opened 25 years ago Closed 25 years ago

[RFE] want textbox.focus() to not grab focus from other mozilla windows

Categories

(Core :: XUL, enhancement, P3)

x86
Windows 98
enhancement

Tracking

()

VERIFIED DUPLICATE of bug 41813
mozilla0.9

People

(Reporter: jruderman, Assigned: hyatt)

References

()

Details

this bug is split from bug 41813 (see John Morrison 2000-08-28 18:29 on that bug). bug 41813: textbox.focus() shouldn't grab focus from other moz windows on Linux this bug: textbox.focus() shouldn't grab focus from other moz windows on Win It sounds like it's agreed that it should work that was for Linux and Mac, but there hasn't been much discussion about what should happen on Windows. IE 5.5 Win does let textboxes grab focus from other windows, and apparently NS4.x Win does too.
Yep. For a non-frontmost window to jump to the top, for no obvious reason (see how long it took to work out what was causing bug 41813 in the first place!), is just rude. If we don't fix this, then the purveyors of popup windows have now got a trick to keep their popups frontmost: just repeatedly call the textbox.focus() function for a minimal textbox in the popup.
Sending to Toolkit/Widgets. This bug has been lost in space for a while.
Assignee: hangas → trudelle
Component: User Interface: Design Feedback → XP Toolkit/Widgets
QA Contact: mpt → jrgm
-> future, as this cannot possibly be done in the current time frame (and this is the platform convention of existing browsers on windows).
Target Milestone: --- → Future
Accepting for future
Status: NEW → ASSIGNED
It seems silly to me that search sites have to choose between making users click in a textbox and annoying Windows users who browse in multiple windows. If a webpage wants to steal focus from another browser window, it can use window.focus(). I doubt it's common for websites to need to steal focus from another window and then immediately let the user type something, but if a site actually needs to do this, window.focus() followed by textbox.focus() works fine in all Windows browsers.
This should apply to sidebars (and frames) as well. There's currently no way for a sidebar tab to set focus to a textbox onload without stealing focus each time a new browser window is opened, afaict.
Blocks: 61417
->saari for consideration.
Assignee: trudelle → saari
Status: ASSIGNED → NEW
No longer blocks: 61417
Status: NEW → ASSIGNED
Target Milestone: Future → mozilla0.9
The feedback on this has been clear, no one likes the current implementation. Target Mozilla 0.9
*** Bug 64685 has been marked as a duplicate of this bug. ***
*** This bug has been marked as a duplicate of 28467 ***
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → DUPLICATE
verified. (consolidating this bug).
Status: RESOLVED → VERIFIED
Reopening based on Trudelle's 2001-04-06 comment in bug 28467.
Status: VERIFIED → REOPENED
Resolution: DUPLICATE → ---
->hyatt
Assignee: saari → hyatt
Status: REOPENED → NEW
*** This bug has been marked as a duplicate of 41813 ***
Status: NEW → RESOLVED
Closed: 25 years ago25 years ago
Resolution: --- → DUPLICATE
invalids, wontfixes, dups, worksformes
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.