Closed Bug 219049 Opened 21 years ago Closed 19 years ago

No focus with js on rich textarea/iframe when permission raise or lower windows blocked

Categories

(Core :: DOM: Events, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 300453

People

(Reporter: martijn.martijn, Unassigned)

References

()

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5b) Gecko/20030903 Firebird/0.6.1+ Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5b) Gecko/20030903 Firebird/0.6.1+ http://devedge.netscape.com/viewsource/2003/midas/01/example2-index.html In this demo, after you have clicked on one of the buttons, the focus returns to the rich textarea in Mozilla. In Firebird, the focus is not returned to the rich textarea. This should be done, because it is explicitly set in the function in that demo: document.getElementById('editorWindow').contentWindow.focus() So this doesn't work in Firebird. Reproducible: Always Steps to Reproduce: 1.Go to the demo 2.Click on one of the buttons 3. Actual Results: No focus on the rich textarea Expected Results: The rich textarea should be focused
WFM winXP Gecko/20030910 Firebird/0.6.1+ & 0.6.1 milestone.
I see now that I had in: Tools --> Options --> Web features --> Enable Javascript --> Advanced --> Raise or lower windows. I had that option turned off. When I turned that on again it worked well. I see now it's my fault. Sorry. Although it is maybe strange that the options also affects the focus on iframes.
Resolvingas INVALID as per comment #2.
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago
Resolution: --- → INVALID
I think there is still a (small) issue. When someone has the javascript permission: Raise or lower windows turned off, you can't set the focus on an iframe (which could be a rich text area iframe). For a web developer/programmer that would seem logical, because an iframe/frame is a kind of a window, but I think one should be able to focus frames/iframes. Off course, the window which contains the frame/iframe should not be raised when you are on a different window. I can also put it in other words. When the pref raise or lower windows is unchecked, windows should not be able to get focus, but page elements, or windows in ifram/frame elements should still be able to get focus in their own parent window. So, basically I would like to see it reopened. I hope I have made this issue (which I think it is) a bit clearer.
Summary: Focus is not returned to rich textarea with javascript method → No focus with js on rich textarea/iframe when permission raise or lower windows blocked
->DOM
Status: RESOLVED → UNCONFIRMED
Component: General → DOM Events
Product: Firebird → Browser
Resolution: INVALID → ---
Version: unspecified → Trunk
->defaults
Assignee: blake → events
QA Contact: asa → ian
This turns out to be more complicated to fix than I had initially thought. This ends up being yet one more block in the jenga game that is focus. Cc:ing bryner. We'll need the ability to focus a window w/o bringing its toplevel window to the front in order to be able to fix this in the DOM code. I'm thinking this'll be a lot easier to fix once bug 124750 is fixed. Confirming.
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Windows XP → All
Hardware: PC → All
*** This bug has been marked as a duplicate of 300453 ***
Status: NEW → RESOLVED
Closed: 21 years ago19 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.