[webkit-changes] [WebKit/WebKit] e35d40: [GTK][WPE] Add API to check if a response policy d...

Carlos Garcia Campos noreply at github.com
Thu Oct 27 02:57:48 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: e35d40906d10a1494e117ab696ab323191803f7c
      https://github.com/WebKit/WebKit/commit/e35d40906d10a1494e117ab696ab323191803f7c
  Author: Carlos Garcia Campos <cgarcia at igalia.com>
  Date:   2022-10-27 (Thu, 27 Oct 2022)

  Changed paths:
    M Source/WebKit/UIProcess/API/glib/WebKitResponsePolicyDecision.cpp
    M Source/WebKit/UIProcess/API/glib/WebKitResponsePolicyDecision.h.in
    M Tools/MiniBrowser/gtk/BrowserTab.c
    M Tools/TestWebKitAPI/Tests/WebKitGLib/TestWebKitPolicyClient.cpp

  Log Message:
  -----------
  [GTK][WPE] Add API to check if a response policy decision is for the main resource
https://bugs.webkit.org/show_bug.cgi?id=247059

Reviewed by Adrian Perez de Castro and Michael Catanzaro.

Apps are currently checking if request uri is the same as web view main
resource uri which might not be accurate.

* Source/WebKit/UIProcess/API/glib/WebKitResponsePolicyDecision.cpp:
(webkit_response_policy_decision_is_main_frame_main_resource):
* Source/WebKit/UIProcess/API/glib/WebKitResponsePolicyDecision.h.in:
* Tools/MiniBrowser/gtk/BrowserTab.c:
(decidePolicy):
* Tools/TestWebKitAPI/Tests/WebKitGLib/TestWebKitPolicyClient.cpp:
(testResponsePolicy):

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




More information about the webkit-changes mailing list