Summary: | Web Inspector: Selecting a DOM Search Result in Search Tab unexpectedly changes Tabs | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Joseph Pecoraro <joepeck> | ||||||||||
Component: | Web Inspector | Assignee: | Joseph Pecoraro <joepeck> | ||||||||||
Status: | RESOLVED FIXED | ||||||||||||
Severity: | Normal | CC: | hi, inspector-bugzilla-changes, joepeck, webkit-bug-importer | ||||||||||
Priority: | P2 | Keywords: | InRadar | ||||||||||
Version: | WebKit Nightly Build | ||||||||||||
Hardware: | All | ||||||||||||
OS: | All | ||||||||||||
Attachments: |
|
Description
Joseph Pecoraro
2017-11-02 18:58:46 PDT
Created attachment 325819 [details]
[PATCH] Proposed Fix
Comment on attachment 325819 [details]
[PATCH] Proposed Fix
Going to not mark this as review right now since switching to the Elements tab sometimes doesn't bring all of its Details sidebars... so probably an existing bug.
Created attachment 325832 [details]
[PATCH] Proposed Fix
Here we go, fixing the tab switching issue, which ran pretty deep into ContentBrowser.
Created attachment 325833 [details]
[IMAGE] DOM Tree in Search Tab
Created attachment 325834 [details]
[IMAGE] Context Menu in Search Tab
Comment on attachment 325832 [details] [PATCH] Proposed Fix View in context: https://bugs.webkit.org/attachment.cgi?id=325832&action=review r=me > Source/WebInspectorUI/ChangeLog:19 > + (WI.SearchTabContentView): > + Check experimental setting for experimental sidebars. This is unrelated. Did you forget to upload part of the diff, or is this from another patch? > Source/WebInspectorUI/UserInterface/Views/ContentBrowser.js:236 > + let currentContentView = this.currentContentView; > + this._updateContentViewSelectionPathNavigationItem(currentContentView); > + this._updateHierarchicalPathNavigationItem(currentContentView ? currentContentView.representedObject : null); I would personally restructure this to make use of existing functions. this._updateContentViewSelectionPathNavigationItem(this.currentContentView); this.updateHierarchicalPathForCurrentContentView(); Comment on attachment 325832 [details] [PATCH] Proposed Fix View in context: https://bugs.webkit.org/attachment.cgi?id=325832&action=review >> Source/WebInspectorUI/ChangeLog:19 >> + Check experimental setting for experimental sidebars. > > This is unrelated. Did you forget to upload part of the diff, or is this from another patch? Ross actually landed this part, heh. >> Source/WebInspectorUI/UserInterface/Views/ContentBrowser.js:236 >> + this._updateHierarchicalPathNavigationItem(currentContentView ? currentContentView.representedObject : null); > > I would personally restructure this to make use of existing functions. > > this._updateContentViewSelectionPathNavigationItem(this.currentContentView); > this.updateHierarchicalPathForCurrentContentView(); Sounds good! |