Closed Bug 302346 Opened 19 years ago Closed 19 years ago

window.focus() ignored in Firefox on Linux

Categories

(Firefox :: General, defect)

x86
Linux
defect
Not set
major

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: 2z9kkv7001, Unassigned)

Details

(Keywords: testcase)

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050512 Firefox/1.0.4
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050512 Firefox/1.0.4

In Firefox on Linux, window.focus() does nothing. It works fine in Konqueror,
and I have heard that it works fine in Mozilla, IE, and Opera on Windows.

Reproducible: Always

Steps to Reproduce:
1.View the attached test HTML file in Firefox on Linux.
2.Click "build win". A window will pop up. Return to the test page.
3.Click "focus on winx".
Actual Results:  
The pop-up window does not get window focus. If it was overlapping with the
opener window, it will stay behind the window.

Expected Results:  
The pop-up window should be acquired window focus. If it was overlapping with
the opener window, it should be brought to the front and completely revealed.
Attached file testcase for this bug
Keywords: testcase
In the preferences, look at web features and click on the advanced javascript
options. If the option "Raise or lower windows" is not checked then
window.focus() shouldn't work and this bug is invalid.

Please check this and respond.

"Raise or lower windows" is checked.
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8b4) Gecko/20050726 Firefox/1.0+
ID:2005072616

Works for me. Reporter, can you reproduce this in the latest builds?
http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-trunk/
It does work for me! Sorry, I shouldn't have skipped that step. Learned my
lesson now. :)
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: