Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 77a6c78d0dcecbc33602cfcd69f2469fb89185b7
      
https://github.com/WebKit/WebKit/commit/77a6c78d0dcecbc33602cfcd69f2469fb89185b7
  Author: Ahmad Saleem <[email protected]>
  Date:   2026-08-28 (Fri, 28 Aug 2026)

  Changed paths:
    M Source/WebCore/html/HTMLMediaElement.cpp

  Log Message:
  -----------
  HTMLMediaElement::isSafeToLoadURL() computes isIPAddressDisallowed() twice
https://bugs.webkit.org/show_bug.cgi?id=322678

Reviewed by Chris Dumez.

isSafeToLoadURL() called isIPAddressDisallowed(url) once in the guard
condition and again when selecting the error message to log. That
function parses the URL host via IPAddress::fromString() on each call,
so hoist the result into a local bool and reuse it.

* Source/WebCore/html/HTMLMediaElement.cpp:
(WebCore::HTMLMediaElement::isSafeToLoadURL const):

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



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

Reply via email to