Closed Bug 1823 Opened 26 years ago Closed 26 years ago

location object needs toString() method

Categories

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

x86
Windows NT
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: michael.j.lowe, Assigned: vidur)

References

()

Details

The bottom frame in this page does not load. Seems to be a DOM problem.
Status: NEW → RESOLVED
Closed: 26 years ago
Resolution: --- → WORKSFORME
Works for me. There is script on the page and it's doing the right thing (except for the fact that Image constructors still don't preload images).
Status: RESOLVED → REOPENED
This page still causes problems for me. Here is a simple test case which illustrates the bug: <html> <head> </head> <body> <script> document.write(parent.location); </script> </body> </html> With my build of nglayout, this page displays "[object location]" instead of the page's URL. This affects the following script in the www.village.com.au page: <script> // Written by Phil and Symonty. Copyright Village Roadshow, 1998 // 18/2/1998 // // JavaScript to generate ad frames. Allows for nested frames too :) var middleFound = 0; var i; // Is there a frame called middle? for (i = 0; i < top.frames.length; i++) if (top.frames[i].name == "middle") { middleFound = 1; break; } // Load the pages into the frameset if (!middleFound) { top.location="http://www.village.com.au/cgi-bin/fp_frame.cgi?"+parent.location; } else { top.window.vil_banners.location="http://www.village.com.au/bannerdocs/fp_village ad.htm"; } </script>
Status: REOPENED → ASSIGNED
Yup, you're right. I probably pasted the generated URL from Navigator while I was debugging this.
Status: ASSIGNED → RESOLVED
Closed: 26 years ago26 years ago
Resolution: WORKSFORME → FIXED
Fixed on 1/6/1999. Added a toString method to the location object.
Status: RESOLVED → VERIFIED
RCS file: /cvsroot/mozilla/testing/mochitest/tests/test_bug1823.html,v done Checking in test_bug1823.html; /cvsroot/mozilla/testing/mochitest/tests/test_bug1823.html,v <-- test_bug1823.html initial revision: 1.1 done
Flags: in-testsuite+
Summary: Frame does not load → location object needs toString() method
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.