- Open http://jsbin.com/EQoBeV/2.
- Open dev tools
- Choose 2 from the dropdown list to select the iframe's window context
- Type
window.myVariable
– it should be set to 3 (like it says in the iframe content) - Reload page
- Do steps 3 and 4 again – there is no such variable
- Verify that it is inside the iframe:
window.frames[1].myVariable
outputs 3
This shows that the dev console breaks after reloading the page with the dev console open. The problem does resolve if you close and re-open the dev console.