Branch: refs/heads/main Home: https://github.com/WebKit/WebKit Commit: 0e046a9f289e4ab46fcbf70f18a785b630903060 https://github.com/WebKit/WebKit/commit/0e046a9f289e4ab46fcbf70f18a785b630903060 Author: Alex Christensen <achristen...@apple.com> Date: 2024-04-16 (Tue, 16 Apr 2024)
Changed paths: M Source/WTF/wtf/CompletionHandler.h M Tools/WebKitTestRunner/InjectedBundle/InjectedBundle.cpp M Tools/WebKitTestRunner/InjectedBundle/InjectedBundle.h M Tools/WebKitTestRunner/InjectedBundle/TestRunner.cpp M Tools/WebKitTestRunner/InjectedBundle/TestRunner.h M Tools/WebKitTestRunner/TestController.cpp M Tools/WebKitTestRunner/TestController.h M Tools/WebKitTestRunner/TestInvocation.cpp M Tools/WebKitTestRunner/TestInvocation.h Log Message: ----------- Expand use of WKBundlePagePostMessageWithAsyncReply in WebKitTestRunner https://bugs.webkit.org/show_bug.cgi?id=272700 rdar://126506518 Reviewed by Sihui Liu. This makes the tests work better with site isolation by sending the reply to the requesting process instead of the main frame's process. I added the ability to leak and adopt a CompletionHandler like we can a Function to use it as the void* context for C API calls. * Source/WTF/wtf/CompletionHandler.h: (WTF::CompletionHandler<Out): * Tools/WebKitTestRunner/InjectedBundle/InjectedBundle.cpp: (WTR::InjectedBundle::didReceiveMessageToPage): (WTR::stringArrayToJS): (WTR::postMessageWithAsyncReply): (WTR::asyncReplyHandler): Deleted. * Tools/WebKitTestRunner/InjectedBundle/InjectedBundle.h: * Tools/WebKitTestRunner/InjectedBundle/TestRunner.cpp: (WTR::TestRunner::removeAllCookies): (WTR::TestRunner::takeViewPortSnapshot): (WTR::TestRunner::getAndClearReportedWindowProxyAccessDomains): (WTR::stringArrayToJS): Deleted. (WTR::TestRunner::callRemoveAllCookiesCallback): Deleted. (WTR::TestRunner::viewPortSnapshotTaken): Deleted. (WTR::TestRunner::didGetAndClearReportedWindowProxyAccessDomains): Deleted. * Tools/WebKitTestRunner/InjectedBundle/TestRunner.h: * Tools/WebKitTestRunner/TestController.cpp: (WTR::TestController::didReceiveAsyncMessageFromInjectedBundle): (WTR::TestController::getAllStorageAccessEntries): (WTR::TestController::removeAllCookies): (WTR::getAllStorageAccessEntriesCallback): Deleted. * Tools/WebKitTestRunner/TestController.h: * Tools/WebKitTestRunner/TestInvocation.cpp: (WTR::TestInvocation::didReceiveMessageFromInjectedBundle): (WTR::TestInvocation::didRemoveAllCookies): Deleted. * Tools/WebKitTestRunner/TestInvocation.h: Canonical link: https://commits.webkit.org/277544@main To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications _______________________________________________ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes