Open
Bug 367969
Opened 17 years ago
Updated 2 years ago
want window.focusWithoutRaise() or similar
Categories
(Core :: DOM: Core & HTML, defect, P5)
Core
DOM: Core & HTML
Tracking
()
NEW
People
(Reporter: dbaron, Unassigned)
Details
(Writing this after looking into bug 330006 (again) and bug 361272.) I think there's a lot of focus code where we either (1) go to significant trouble to avoid calling window.focus() or (2) call window.focus() where we want the focusing effects but not the raising effects. It would be nice to have a method on the window object that does a focus without doing the raise. This would be pretty trivial to implement, since there's already a pref check in nsGlobalWindow::Focus that's probably equivalent to what we want for focusing without raising. The questions are really whether we should have it, what to call it, and what interface it should be on. I'm not sure if this would be much use to Web pages, although maybe window.focus() has effects of moving focus away from things inside the window that are focused, and Web pages might want those alone?
Comment 1•17 years ago
|
||
why wouldn't window.focus() do this?
Reporter | ||
Comment 2•17 years ago
|
||
Why wouldn't it do what? The point is that there are callers that want part but not all of window.focus().
Comment 3•17 years ago
|
||
In Netscape 4, for "Constellation", we talked about such methods as raise, lower and setFocus. I don't see traces of them in http://lxr.mozilla.org/classic/source at this late date, so I bet they never got implemented. /be
Comment 4•17 years ago
|
||
I meant, why would content area script ever be able to raise the window. But I see you're talking about chrome-level APIs. My bad.
Updated•15 years ago
|
Assignee: general → nobody
QA Contact: ian → general
Comment 5•6 years ago
|
||
https://bugzilla.mozilla.org/show_bug.cgi?id=1472046 Move all DOM bugs that haven't been updated in more than 3 years and has no one currently assigned to P5. If you have questions, please contact :mdaly.
Priority: -- → P5
Assignee | ||
Updated•5 years ago
|
Component: DOM → DOM: Core & HTML
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•