Closed
Bug 362766
Opened 18 years ago
Closed 17 years ago
window.opener.focus() is not working
Categories
(Firefox :: General, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 357814
People
(Reporter: allenweng, Unassigned)
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1) Gecko/20061010 Firefox/2.0
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1) Gecko/20061010 Firefox/2.0
it works in firefox 1.5, so I think it probably a new bug??
for example, create a file called "source.html", put the following code
<script type="text/javascript">
window.open('http://localhost/target.html');
</script>
then, create a "target.html", put the following code
<script type="text/javascript">
alert('this is target.html');
if (window.opener)
{
window.opener.focus();
}
</script>
as http://localhost/source.html, there should be a new window with alter popup, after clicking the OK button, it stays in the popup window (target.html), it should be back to the "source.html" window
Reproducible: Always
Steps to Reproduce:
1. http://localhost/source.html
2. on the popup dialog, click 'OK'
3. the window is not setting the focus on the "source.html" window
Actual Results:
the foucs is on the "target.html" window
Expected Results:
the window should set the focus on the "source.html" window
Comment 1•18 years ago
|
||
Isn't this basically bug 357814?
Updated•17 years ago
|
Whiteboard: DUPEME
Version: unspecified → 2.0 Branch
Updated•17 years ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 17 years ago
Resolution: --- → DUPLICATE
Whiteboard: DUPEME
You need to log in
before you can comment on or make changes to this bug.
Description
•