Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 718b0d312579fd8b1141a2e65e0616e2ce3bcd20
      
https://github.com/WebKit/WebKit/commit/718b0d312579fd8b1141a2e65e0616e2ce3bcd20
  Author: Simon Pena <[email protected]>
  Date:   2026-07-09 (Thu, 09 Jul 2026)

  Changed paths:
    M Source/WebKit/UIProcess/API/glib/WebKitWebsitePolicies.cpp
    M Source/WebKit/UIProcess/API/glib/WebKitWebsitePolicies.h.in
    M Source/WebKit/UIProcess/API/glib/WebKitWebsitePoliciesPrivate.h
    M Tools/TestWebKitAPI/Tests/WebKit/WKPage/glib/TestWebKitPolicyClient.cpp

  Log Message:
  -----------
  [GLib] Add per-navigation custom User-Agent to WebKitWebsitePolicies
https://bugs.webkit.org/show_bug.cgi?id=318352

Reviewed by Carlos Garcia Campos and Alejandro G. Castro.

The Cocoa API already lets an embedder choose the User Agent per
top-level navigation, applied through the navigation policy decision.
This expands the GLib public API for the same feature, driven with
webkit_policy_decision_use_with_policies(). This also removes
webkitWebSitePoliciesGetPoliciesData(), as it had no callers and, if
used, would have dropped the new User Agent property.

Test: Tools/TestWebKitAPI/Tests/WebKit/WKPage/glib/TestWebKitPolicyClient.cpp

* Source/WebKit/UIProcess/API/glib/WebKitWebsitePolicies.cpp:
(webkitWebsitePoliciesGetProperty):
(webkitWebsitePoliciesSetProperty):
(webkit_website_policies_class_init):
(webkit_website_policies_get_custom_user_agent):
(webkitWebsitePoliciesGetPoliciesData): Deleted.
* Source/WebKit/UIProcess/API/glib/WebKitWebsitePolicies.h.in:
* Source/WebKit/UIProcess/API/glib/WebKitWebsitePoliciesPrivate.h:
* Tools/TestWebKitAPI/Tests/WebKit/WKPage/glib/TestWebKitPolicyClient.cpp:
(serverCallback):
(testCustomUserAgentPolicy):
(beforeAll):

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



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

Reply via email to