Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 0e04927f8eba1d5140e63a9b88970e0b321c701b
https://github.com/WebKit/WebKit/commit/0e04927f8eba1d5140e63a9b88970e0b321c701b
Author: Siwei Li <[email protected]>
Date: 2023-02-17 (Fri, 17 Feb 2023)
Changed paths:
M Source/WebKit/UIProcess/API/glib/WebKitUserContentManager.cpp
M Source/WebKit/UIProcess/API/glib/WebKitUserContentManager.h.in
M Tools/MiniBrowser/gtk/main.c
M Tools/TestWebKitAPI/Tests/WebKitGLib/TestConsoleMessage.cpp
M Tools/TestWebKitAPI/Tests/WebKitGLib/TestInputMethodContext.cpp
M Tools/TestWebKitAPI/Tests/WebKitGLib/TestSSL.cpp
M Tools/TestWebKitAPI/Tests/WebKitGLib/TestUIClient.cpp
M Tools/TestWebKitAPI/Tests/WebKitGLib/TestWebKitPolicyClient.cpp
M Tools/TestWebKitAPI/Tests/WebKitGLib/TestWebKitUserContentManager.cpp
M Tools/TestWebKitAPI/Tests/WebKitGLib/TestWebKitWebContext.cpp
M Tools/TestWebKitAPI/Tests/WebKitGLib/TestWebKitWebView.cpp
Log Message:
-----------
[GTK][WPE] Merge functions of registering and unregistering script message
handler in WebKitUserContentManager API
https://bugs.webkit.org/show_bug.cgi?id=248748
Reviewed by Carlos Garcia Campos.
For the new upcoming API (guarded with ENABLE_2022_GLIB_API),
replace webkit_user_content_manager_register_script_message_handler_in_world and
webkit_user_content_manager_register_script_message_handler
into a single function that always receives a script world
and NULL can be passed to use the default one, along with
their counterpart functions for unregistering the message handler.
* Source/WebKit/UIProcess/API/glib/WebKitUserContentManager.cpp:
(webkit_user_content_manager_unregister_script_message_handler):
* Source/WebKit/UIProcess/API/glib/WebKitUserContentManager.h.in:
* Tools/TestWebKitAPI/Tests/WebKitGLib/TestInputMethodContext.cpp:
* Tools/TestWebKitAPI/Tests/WebKitGLib/TestSSL.cpp:
(WebSocketTest::~WebSocketTest):
* Tools/TestWebKitAPI/Tests/WebKitGLib/TestUIClient.cpp:
* Tools/TestWebKitAPI/Tests/WebKitGLib/TestWebKitUserContentManager.cpp:
(UserScriptMessageTest::unregisterHandler):
* Tools/TestWebKitAPI/Tests/WebKitGLib/TestWebKitWebContext.cpp:
(testWebContextSecurityFileXHR):
* Tools/TestWebKitAPI/Tests/WebKitGLib/TestWebKitWebView.cpp:
Canonical link: https://commits.webkit.org/260442@main
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes