Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 1d01240dc0835e67852aa75ffae66327316e9395
      
https://github.com/WebKit/WebKit/commit/1d01240dc0835e67852aa75ffae66327316e9395
  Author: Razvan Caliman <[email protected]>
  Date:   2025-06-06 (Fri, 06 Jun 2025)

  Changed paths:
    M Source/WebInspectorUI/UserInterface/Controllers/NetworkManager.js
    M Source/WebInspectorUI/UserInterface/Views/LocalResourceOverridePopover.js

  Log Message:
  -----------
  Web Inspector: Broken Sources and Network tabs after creating Local Override 
with invalid Regular Expression
https://bugs.webkit.org/show_bug.cgi?id=294072
rdar://152651800

Reviewed by Devin Rousso.

Prevent creating a Local Override with an invalid URL regular expression
to avoid triggering an exception when it is applied.

Since Local Overrides are stored and re-applied on every Web Inspector
session, this unhandled exception triggered on every URL request
makes the Sources and Network tabs unusable for every inspected page.

With the Sources tab in a broken state, a user cannot even remove
the faulty Local Override.

For users who end up in this state, we include a mitigation to automatically
delete Local Overrides with broken regular expressions as URLs.

* Source/WebInspectorUI/UserInterface/Models/LocalResourceOverride.js:
(WI.LocalResourceOverride.prototype.matches):
(WI.LocalResourceOverride.prototype.get _urlRegex):
(WI.LocalResourceOverride):

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to