Closed Bug 771755 Opened 12 years ago Closed 12 years ago

parent.parent.parent returns an incorrect value if window.name is set

Categories

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

13 Branch
x86
Windows Vista
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 163924

People

(Reporter: ed.boas, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 6.0) AppleWebKit/536.11 (KHTML, like Gecko) Chrome/20.0.1132.47 Safari/536.11 Steps to reproduce: 1.html: <html> <head> <script type="text/javascript"> window.name="parent"; </script> </head> <body> <iframe src="2.html"> <iframe src="2.html"> </body> </html> 2.html: <html> <head> <script type="text/javascript"> window.name="parent"; </script> </head> <body> <iframe src="3.html"> <iframe src="3.html"> </body> </html> 3.html: <html> <head> <script type="text/javascript"> window.name="parent"; </script> </head> <body> <iframe src="4.html"> <iframe src="4.html"> </body> </html> 4.html: <html> <head> <script type="text/javascript"> document.write(self.location.href+"<br>") document.write(parent.location.href+"<br>") document.write(parent.parent.location.href+"<br>") document.write(parent.parent.parent.location.href+"<br>") document.write(parent.parent.parent.parent.location.href+"<br>") </script> </head> <body></body> </html> Actual results: Firefox output: 4.html 3.html 2.html 3.html 2.html Expected results: Correct output (which is produced by Chrome and IE9): 4.html 3.html 2.html 1.html 1.html
Status: UNCONFIRMED → RESOLVED
Closed: 12 years ago
Resolution: --- → DUPLICATE
Opera12.00 is same as Firefox
You need to log in before you can comment on or make changes to this bug.