Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 15b4a799985c255d12b4d25a3ffe8cf01344803e
      
https://github.com/WebKit/WebKit/commit/15b4a799985c255d12b4d25a3ffe8cf01344803e
  Author: Ahmad Saleem <[email protected]>
  Date:   2026-07-18 (Sat, 18 Jul 2026)

  Changed paths:
    M Source/WebInspectorUI/UserInterface/Views/LogContentView.js

  Log Message:
  -----------
  Web Inspector: operator precedence bug in LogContentView range selection 
deselect check
https://bugs.webkit.org/show_bug.cgi?id=319737
rdar://182577068

Reviewed by Devin Rousso.

Missing parentheses around `i < newRange[0] || i > newRange[1]` let `&&`
bind tighter than `||`, so the classList.contains() check only
guarded the `i > newRange[1]` side. Currently latent since
DOMTokenList.remove() and Array.prototype.remove() are no-ops on
absent values, but add explicit parentheses to match the intended logic.

* Source/WebInspectorUI/UserInterface/Views/LogContentView.js:
(WI.LogContentView.prototype._updateMessagesSelection):

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



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

Reply via email to