* SUMMARY UI Switches from DOM Tree to Source Code too frequently. Most of the time I live in DOM Tree. * STEPS TO REPRODUCE 1. Inspect an Element on <http://bogojoker.com/shell/> => you will be in Resources panel with DOM Tree showing 2. Switch to Debugger navigation sidebar 3. Switch to Resources navigation sidebar => suddenly you see DOM Tree, not Source Code
<rdar://problem/19281638>
The change to ResourceSidebarPanel.js that I snuck into bug 139526 should fix this. We were calling showMainFrameSourceCode when showing the default view for Resources sidebar. Making it just show the main frame will show whatever was showing before — Dom or Source. Also the fix for bug 139526 does not switch content views as often, so that fixes it too.
*** Bug 132381 has been marked as a duplicate of this bug. ***