New issue 64311 by romeo_...@yahoo.com: Local variable named "name" can
remove a frame from a frameset
http://code.google.com/p/chromium/issues/detail?id=64311
Chrome Version : 7.0.517.44
URLs (if applicable) :
Other browsers tested:
Add OK or FAIL after other browsers where you have tested this issue:
Safari 5:
Firefox 3.x: OK
IE 7/8: OK
What steps will reproduce the problem?
1. unzip the provided archive
2. open in google chrome the file main.html
3. put a breakpoint in scripts/dummy.js at line 3
4. add two watch expressions:
- window.parent.frames["frame1"]
- window.parent.frames["frame2"]
5. execute lines 4 and 5 step by step
What is the expected result?
after executing line 5 window.parent.frames["frame2"] should not become
undefined
What happens instead?
after executing line 5 window.parent.frames["frame2"] becomes undefined
Please provide any additional information below. Attach a screenshot if
possible.
This should not happen as the variable name is a local variable. If I
rename it to s_name for example, the bug is not active anymore.
Attachments:
chrome_bug.zip 1.3 KB
frame_removal1.JPG 98.5 KB
frame_removal2.JPG 111 KB