Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 925dcb89b0d95adb1b427edef221573b6b839b23
      
https://github.com/WebKit/WebKit/commit/925dcb89b0d95adb1b427edef221573b6b839b23
  Author: Ronan Turner <[email protected]>
  Date:   2026-04-15 (Wed, 15 Apr 2026)

  Changed paths:
    M Tools/TestWebKitAPI/Tests/WebKit/WKWebView/EnhancedSecurityPolicies.mm

  Log Message:
  -----------
  Improve EnhancedSecurityPolicies test output to be more informative of where 
the failure occurs
https://bugs.webkit.org/show_bug.cgi?id=312363
rdar://174816736

Reviewed by Vitor Roriz.

Test failures from Enhanced Security state mismatches were failing to report 
useful
information about what the mismatch was, or pinpoint the original line location.

This patch improves the output by making use of C++20 
std::source_location::current()
as a default argument, which gets evaluated at each call site. This allows 
propagating
our line location information with minimal other changes.

* Tools/TestWebKitAPI/Tests/WebKit/WKWebView/EnhancedSecurityPolicies.mm:
(testAlertWithEnhancedSecurity):
(runActionAndCheckEnhancedSecurityAlerts):
(loadRequestAndCheckEnhancedSecurityAlerts):

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



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

Reply via email to