Skip to content

Instantly share code, notes, and snippets.

@KrofDrakula
Created October 24, 2013 21:54
Show Gist options
  • Save KrofDrakula/7145724 to your computer and use it in GitHub Desktop.
Save KrofDrakula/7145724 to your computer and use it in GitHub Desktop.
Reproduction steps for Chrome dev tools console bug
  1. Open http://jsbin.com/EQoBeV/2.
  2. Open dev tools
  3. Choose 2 from the dropdown list to select the iframe's window context
  4. Type window.myVariable – it should be set to 3 (like it says in the iframe content)
  5. Reload page
  6. Do steps 3 and 4 again – there is no such variable
  7. 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment