Closed Bug 132433 Opened 23 years ago Closed 22 years ago

different flavours of windows OS should be able to retireve.

Categories

(Core :: DOM: Core & HTML, defect, P2)

x86
Windows XP
defect

Tracking

()

RESOLVED INVALID

People

(Reporter: desale, Unassigned)

References

()

Details

Attachments

(1 file)

We should be able to know which flavour of windows we are running application on. It is specially important for me to set different testing envionment for different windows flavours on automation testing. I tested this with IE too & IE also shows wrong results. I believe [not sure] we are grabbing this information in userAgent from System Info & may be system info is wrong in itself. [This is just a wild guess] STEPS TO REPRODUCE: 1] Launch browser on WinXP. 1] Please visit URL provided above. 2] Please notice Actual Results there. EXPECTED RESULTS: Mentioned in testcase. navigator.platform: WinXP navigator.userAgent: Mozilla/5.0 (Windows; U; WinXP; en-US; rv:0.9.9+) Gecko/20020307 Netscape6/6.2.1+ Applet Showing os.name: [Scrolling text in applet should be "Windows XP".] ACTUAL RESULTS: please see yourself... it should be similar to something like follows. navigator.platform: Win32 navigator.userAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:0.9.9+) Gecko/20020307 Netscape6/6.2.1+ Applet Showing os.name: [Scrolling text in applet is "Windows 2000".] All three platform string show up different. First "Win32", second "WindowsNT 5.1", & third "Windows 2000". No where it says "Windows XP" It shows odd results on Win-2000 too.
Attached file Testcase
Attaching zip file which contains same testcase [HTML file] at above URL & java class file used for applet.
setting higher priority because it can block our testing in future. Right now It does not block us from doing our automation testing.
Priority: -- → P2
timeless, this is where that replacement for useragent you're supposedly working on comes in....
Mass-reassigning bugs to dom_bugs@netscape.com
Assignee: jst → dom_bugs
ok, some basics. 1. http://www.mozilla.org/docs/dom/domref/dom_window_ref45.html is wrong .platform should return win32 on win32 platforms. there's a netcaster reference on this. 2. Windows NT 5.1 is acceptable, it isn't ideal, but it is acceptable 3. Your version of java (which you didn't specify) probably didn't recognize windows xp. this bug is basically filed because of 3. which is (a) not our fault, and (b) underspecified since you didn't indicate which jvm you were using.
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: