Bug 139515 - Web Inspector: UI Switches from DOM Tree to Source Code too frequently
Summary: Web Inspector: UI Switches from DOM Tree to Source Code too frequently
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
: 132381 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-12-10 17:19 PST by Joseph Pecoraro
Modified: 2015-01-10 10:12 PST (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joseph Pecoraro 2014-12-10 17:19:44 PST
* 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
Comment 1 Radar WebKit Bug Importer 2014-12-17 11:26:44 PST
<rdar://problem/19281638>
Comment 2 Timothy Hatcher 2015-01-08 21:06:44 PST
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.
Comment 3 Timothy Hatcher 2015-01-10 10:12:48 PST
*** Bug 132381 has been marked as a duplicate of this bug. ***