Bug 20447
Summary: | window.toString() gives different output for Safari/FF/IE | ||
---|---|---|---|
Product: | WebKit | Reporter: | Eric Seidel (no email) <eric> |
Component: | New Bugs | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED CONFIGURATION CHANGED | ||
Severity: | Normal | CC: | ahmad.saleem792, mjs, rniwa |
Priority: | P2 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | Mac | ||
OS: | OS X 10.5 | ||
URL: | javascript:alert(window) |
Eric Seidel (no email)
Safari: "[object DOMWindow]"
FireFox: "[object Window]"
Opera: "[object Window]"
IE: "[object]"
I'm not sure which is correct. But it seems like we might want to match either FF or IE here. Maybe it doesn't matter. I don't have a site which is broken due to this only record of a crazy internal page using this as a way to detect browser type!? :)
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Ahmad Saleem
From attached test case in URL field, I get [object Window] in all browsers (Chrome Canary 106, Firefox Nightly 105 and Safari 15.6).
JSFiddle from URL field Test case - https://jsfiddle.net/st7L03b8/
JSFiddle for toString test case - https://jsfiddle.net/ygtSk/
In other test case, similarly for all browsers - I get [object String].
Since all browsers are now matching, I am going to mark this as "RESOLVED CONFIGURATION CHANGED". Thanks!