Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 637f1f985e4cd3a8eadbb0d29821876bf1656339
      
https://github.com/WebKit/WebKit/commit/637f1f985e4cd3a8eadbb0d29821876bf1656339
  Author: Devin Rousso <[email protected]>
  Date:   2026-07-31 (Fri, 31 Jul 2026)

  Changed paths:
    M Source/WebInspectorUI/UserInterface/Views/ContentBrowserTabContentView.js
    M Source/WebInspectorUI/UserInterface/Views/SourcesTabContentView.js

  Log Message:
  -----------
  Web Inspector: restore a selected details sidebar panel when it becomes 
available again
https://bugs.webkit.org/show_bug.cgi?id=320525

Reviewed by Simon Fraser.

When a `WI.DetailsSidebarPanel` cannot inspect the current represented 
object(s), it is removed and the first available other `WI.DetailsSidebarPanel` 
is shown instead.

Currently, the selection setting will keep the unavailable 
`WI.DetailsSidebarPanel` as the last user choice.

However, the Sources Tab automatically selects the "Scope Chain" panel when 
pausing, which always replaces it.

* Source/WebInspectorUI/UserInterface/Views/ContentBrowserTabContentView.js:
(WI.ContentBrowserTabContentView.prototype.showDetailsSidebarPanels):
* Source/WebInspectorUI/UserInterface/Views/SourcesTabContentView.js:
(WI.SourcesTabContentView.prototype.showDetailsSidebarPanels):
Let any restored `WI.DetailsSidebarPanel` override the automatic "Scope Chain" 
panel selection.
Note that if the developer selects a different `WI.DetailsSidebarPanel` then 
that will be respected.

Canonical link: https://commits.webkit.org/318353@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to