Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: b463838604347a30b73f84a5e4b41e92eccb3827
      
https://github.com/WebKit/WebKit/commit/b463838604347a30b73f84a5e4b41e92eccb3827
  Author: Devin Rousso <[email protected]>
  Date:   2026-10-05 (Mon, 05 Oct 2026)

  Changed paths:
    A Source/WebInspectorUI/UserInterface/Base/ScopeExit.js
    M Source/WebInspectorUI/UserInterface/Main.html
    M Source/WebInspectorUI/UserInterface/Models/Resource.js
    M Source/WebInspectorUI/UserInterface/Test.html
    M Source/WebInspectorUI/UserInterface/Views/DOMTreeElement.js
    M Source/WebInspectorUI/UserInterface/Views/TabBrowser.js
    M Source/WebInspectorUI/eslint.config.mjs

  Log Message:
  -----------
  Web Inspector: add `ScopeExit` to better handle state cleanup
https://bugs.webkit.org/show_bug.cgi?id=324115

Reviewed by Timothy Hatcher.

Rather than having to remember to reset the value at each `return` we can 
instead leverage `using` to do that automatically.

* Source/WebInspectorUI/UserInterface/Base/ScopeExit.js: Added.
(ScopeExit):
(ScopeExit.prototype.Symbol.dispose):
(ScopeExit.prototype.async Symbol):

* Source/WebInspectorUI/UserInterface/Models/Resource.js:
(WI.Resource.prototype.requestContent):
* Source/WebInspectorUI/UserInterface/Views/DOMTreeElement.js:
(WI.DOMTreeElement.prototype._updateChildren):
* Source/WebInspectorUI/UserInterface/Views/TabBrowser.js:
(WI.TabBrowser.prototype._showNavigationSidebarPanelForTabContentView):
(WI.TabBrowser.prototype._showDetailsSidebarPanelsForTabContentView):

* Source/WebInspectorUI/eslint.config.mjs:
Allow unused `using` since they have side-effects via `Symbol.dispose`.

* Source/WebInspectorUI/UserInterface/Main.html:
* Source/WebInspectorUI/UserInterface/Test.html:

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



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

Reply via email to