Who says a WindowCollection object should be returned? That testcase seems flawed to me.
At least until recently we were returning '[object WindowCollection]'; see: http://devedge.netscape.com/evangelism/docs/technotes/xref/window-object/
This was changed something like a year ago, it's an intentional change for backwards compatibility, we need window.frames === window since real sites out there rely on window.frames to have properties like name and location. Don't ask why. Over to desale, the testcase needs to be updated.
*** Bug 142479 has been marked as a duplicate of this bug. ***
*** Bug 168865 has been marked as a duplicate of this bug. ***
*** Bug 177033 has been marked as a duplicate of this bug. ***
Same issue here. Please fix or remove the test.
Created attachment 121463 [details] Revised win046.html I changed the [object WindowCollection] lines to [object Window]. I'm not totally sure about what, if anything, that should be added to the top comment of the file. Anyone care to help me out?
As of version 1.5a, the test: still fails; the results still report it received [object Window] when expecting [object WindowCollection]; this bug ID is not displayed in the "Bug Number" column. Either of two things is happening: The test case has not been fixed/updated; or the fixes are not getting into the build for some reason.
RE: Comment #12: It's the testcase that has not been fixed/updated...
Comment on attachment 131113 [details] [diff] [review] Simple fix, same as in comment #11. Seeking "r" for simple fix of DOM 0 testcase.
Comment on attachment 131113 [details] [diff] [review] Simple fix, same as in comment #11. We really should make these testcases check what type of object they are instanceof rather than compares .toString() outputs....
Re comment 4 Is the change supposed to apply to standards-compliant mode as well?
Comment on attachment 131113 [details] [diff] [review] Simple fix, same as in comment #11. Let's fix the testcase to not check the .toString() value, but rather to check instanceof instead.
I checked in stefan's patch in the mean time so that people stop wondering about this "bug". I filed bug 226711 for the instanceof issue. Marking this fixed.