RESOLVED CONFIGURATION CHANGED 20447
window.toString() gives different output for Safari/FF/IE
https://bugs.webkit.org/show_bug.cgi?id=20447
Summary window.toString() gives different output for Safari/FF/IE
Eric Seidel (no email)
Reported 2008-08-19 13:26:55 PDT
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
Ahmad Saleem
Comment 1 2022-08-06 05:37:51 PDT
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!
Note You need to log in before you can comment on or make changes to this bug.