Closed Bug 301174 Opened 19 years ago Closed 15 years ago

Text inputs focus on opened window frozen after re-focusing this window with Javascript

Categories

(Firefox :: General, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

VERIFIED INCOMPLETE

People

(Reporter: admin, Unassigned)

Details

(Whiteboard: closeme 2009-08-01)

User-Agent:       Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
Build Identifier: Firefox 1.0.5 (sorry - no access to my Firefox enabled computer at the moment, to check Mozilla agent information)

Bug discovered on the Mozilla Firefox 1.0.5 (English).
The bug my be linked to the following bugs already reported:

https://bugzilla.mozilla.org/show_bug.cgi?id=292314
https://bugzilla.mozilla.org/show_bug.cgi?id=269207
https://bugzilla.mozilla.org/show_bug.cgi?id=280706

The bug causes input text fields on a popup window non-accessible after sending 
focus to this window.

Reproducible: Always

Steps to Reproduce:
1) Create a new webpage:

2) Make this:
<body onfocus="popup_focus();">

3) This is this function:

function pupup_focus(){
  if(newWindow){
    newWindow.focus();
  }
}

4) Now open popup window:

newWindow = window.open
("news_select.php,"","toolbar=0,location=0,directories=0,status=0,menubar=no,scr
ollbars=yes,resizable=yes,width=800,height=765");

As you see - all this forces popup window to stay on top of the opener window 
what is frequentlly requested feature of web applications.
Actual Results:  
The problem is:

Presume you have a form with several text input fields on the popup window. 
Presume you have this popup already opened. Now, if you incidentally click on 
the opener window, the popup window is brought to front again by the popup_focus
() function of the opener window. Unfortunately, since now it is impossible to 
write into input fields on the popup window any more, unless the popup window 
is minimized and then restored what is nasty.

Expected Results:  
Input fields of the form on the popup window should stay accessible. This is 
the result obtained on Internet Explorer.
do you still see this problem? please update the bug with comment and/or close as appropriate.

(bug has no comment since 2007-01-01)
Whiteboard: closeme 2009-08-01
No reply, INCO. Please reopen if you are seeing this in Firefox 3.5.2 or later in Firefox safe mode and a new profile with the latest plugins.
http://support.mozilla.com/kb/Safe+Mode
http://support.mozilla.com/kb/Profiles
Status: UNCONFIRMED → RESOLVED
Closed: 15 years ago
Resolution: --- → INCOMPLETE
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.