Open
Bug 475648
Opened 16 years ago
Updated 3 years ago
Javascript returns wrong values for screen.width and screen.height (1920x1200)
Categories
(Core :: DOM: Core & HTML, defect, P5)
Tracking
()
UNCONFIRMED
People
(Reporter: samsabra, Unassigned)
References
()
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5
Firefox 3.05 running on Vista
Screen resolution is 1920x1200
screen.width and screen.height return 960x600
Reproducible: Always
Steps to Reproduce:
1. Run Firefox 3.05 on Vista (might also happen on other OS's)
2. Make sure your resolution is 1920x1200
3. type this in the url: javascript:alert('Your%20resolution%20is%20'+screen.width+'x'+screen.height);
Actual Results:
Your resolution is 960x600
Expected Results:
Your resolution is 1920x1200
Can't access website's that check for resolution 1024x768 or greater!
Summary: Javascript wrong values for screen.width and screen.height (1920x1200) → Javascript returns wrong values for screen.width and screen.height (1920x1200)
See http://www.postimage.org/image.php?v=aVCISMJ for screenshot
Comment 2•16 years ago
|
||
It's possibly Vista only. I don't see the problem on XP.
I'm thinking this belongs in DOM land.
Component: General → DOM
Product: Firefox → Core
QA Contact: general → general
Version: 3.0 Branch → Trunk
Comment 3•7 years ago
|
||
https://bugzilla.mozilla.org/show_bug.cgi?id=1472046
Move all DOM bugs that haven’t been updated in more than 3 years and has no one currently assigned to P5.
If you have questions, please contact :mdaly.
Priority: -- → P5
| Assignee | ||
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
Updated•3 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•