Open Bug 291434 Opened 19 years ago Updated 2 months ago

window.open uses the wrong screen if screenX/screenY specified (using two or more screens)

Categories

(Core :: XUL, defect)

1.7 Branch
x86
Windows XP
defect

Tracking

()

People

(Reporter: knocte, Unassigned)

Details

Attachments

(1 file, 1 obsolete file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; es-ES; rv:1.7.6) Gecko/20050321 Firefox/1.0.2
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; es-ES; rv:1.7.6) Gecko/20050321 Firefox/1.0.2

I haven't tested this in other platforms/OS's. But in WindowsXP, using a
secondary screen with Firefox, when you run the ECMAScript function
window.open() with the parameters screenX and screenY specified, the new window
opens in the primary screen.

By the way, if you don't specify screenX/screenY, the window opens in the
correct one. I see also that the properties of screen.width and screen.height
are detected correctly, because I have different resolutions configured in each
screen.

Reproducible: Always

Steps to Reproduce:
1. Buy an additional screen, if you have only one.
2. Attach the new screen to your PC so as to work as a "virtual desktop" OS.
3. Open Firefox in the secondary screen.
4. Fire an event that calls the function window.open() specifying the parameters
screenX and screenY (additionaly you may add "top" and "left", to work on IE as
well, I think).
Actual Results:  
The new window opens in the primary screen.

Expected Results:  
The new window should open in the screen where the parent Firefox window lies.

I will provide a testcase.

I think the severity of this bug is less than normal, but I haven't checked
"minor" because I don't know any workaround at the moment.
After making the testcase, I have found that:

- The first step of the testcase (the one that states that without parameters it
does work correctly) doesn't work correctly *always*! So the bug seems to be
present in a wider range of cases.
- This bug is present in Mozilla 1.8b (Gecko/20050217) also.
Assignee: firefox → jag
Component: General → XP Toolkit/Widgets
Product: Firefox → Core
QA Contact: general → jrgmorrison
Version: unspecified → 1.7 Branch
Status: UNCONFIRMED → NEW
Ever confirmed: true
Assignee: jag → nobody
Severity: normal → S3
Attachment #9385362 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: