Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 37e1a47538f30abbd774aad206e546afd00baa71
https://github.com/WebKit/WebKit/commit/37e1a47538f30abbd774aad206e546afd00baa71
Author: Alex Christensen <[email protected]>
Date: 2024-04-24 (Wed, 24 Apr 2024)
Changed paths:
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:
-----------
Use WKBundlePagePostMessageWithAsyncReply for more WebKitTestRunner messages
https://bugs.webkit.org/show_bug.cgi?id=273211
rdar://127008368
Reviewed by Sihui Liu.
This makes tests work better with site isolation because the reply is sent to
the sending process
which might not be the same as the main frame process.
* Tools/WebKitTestRunner/InjectedBundle/InjectedBundle.cpp:
(WTR::InjectedBundle::didReceiveMessageToPage):
(WTR::postMessageWithAsyncReply):
(WTR::postMessageWithAsyncReplyImpl): Deleted.
* Tools/WebKitTestRunner/InjectedBundle/InjectedBundle.h:
* Tools/WebKitTestRunner/InjectedBundle/TestRunner.cpp:
(WTR::TestRunner::setStatisticsDebugMode):
(WTR::TestRunner::setStatisticsPrevalentResourceForDebugMode):
(WTR::TestRunner::setStatisticsLastSeen):
(WTR::TestRunner::setStatisticsMergeStatistic):
(WTR::TestRunner::setStatisticsExpiredStatistic):
(WTR::TestRunner::setStatisticsPrevalentResource):
(WTR::TestRunner::setStatisticsVeryPrevalentResource):
(WTR::TestRunner::setStatisticsHasHadUserInteraction):
(WTR::TestRunner::statisticsUpdateCookieBlocking):
(WTR::TestRunner::statisticsClearInMemoryAndPersistentStoreModifiedSinceHours):
(WTR::TestRunner::statisticsClearInMemoryAndPersistentStore):
(WTR::TestRunner::statisticsClearThroughWebsiteDataRemoval):
(WTR::TestRunner::setStatisticsShouldDowngradeReferrer):
(WTR::TestRunner::setStatisticsShouldBlockThirdPartyCookies):
(WTR::TestRunner::setStatisticsFirstPartyWebsiteDataRemovalMode):
(WTR::TestRunner::statisticsSetToSameSiteStrictCookies):
(WTR::TestRunner::statisticsSetFirstPartyHostCNAMEDomain):
(WTR::TestRunner::statisticsSetThirdPartyCNAMEDomain):
(WTR::TestRunner::statisticsResetToConsistentState):
(WTR::TestRunner::statisticsCallDidSetPrevalentResourceForDebugModeCallback):
Deleted.
(WTR::TestRunner::statisticsCallDidSetLastSeenCallback): Deleted.
(WTR::TestRunner::statisticsCallDidSetMergeStatisticCallback): Deleted.
(WTR::TestRunner::statisticsCallDidSetExpiredStatisticCallback): Deleted.
(WTR::TestRunner::statisticsCallDidSetPrevalentResourceCallback): Deleted.
(WTR::TestRunner::statisticsCallDidSetVeryPrevalentResourceCallback): Deleted.
(WTR::TestRunner::statisticsCallDidSetHasHadUserInteractionCallback): Deleted.
(WTR::TestRunner::statisticsCallDidSetBlockCookiesForHostCallback): Deleted.
(WTR::TestRunner::statisticsCallDidSetShouldDowngradeReferrerCallback): Deleted.
(WTR::TestRunner::statisticsCallDidSetShouldBlockThirdPartyCookiesCallback):
Deleted.
(WTR::TestRunner::statisticsCallDidSetFirstPartyWebsiteDataRemovalModeCallback):
Deleted.
(WTR::TestRunner::statisticsCallClearInMemoryAndPersistentStoreCallback):
Deleted.
(WTR::TestRunner::statisticsCallClearThroughWebsiteDataRemovalCallback):
Deleted.
(WTR::TestRunner::statisticsCallDidSetToSameSiteStrictCookiesCallback): Deleted.
(WTR::TestRunner::statisticsCallDidSetFirstPartyHostCNAMEDomainCallback):
Deleted.
(WTR::TestRunner::statisticsCallDidSetThirdPartyCNAMEDomainCallback): Deleted.
(WTR::TestRunner::statisticsCallDidResetToConsistentStateCallback): Deleted.
* Tools/WebKitTestRunner/InjectedBundle/TestRunner.h:
* Tools/WebKitTestRunner/TestController.cpp:
(WTR::TestController::didReceiveAsyncMessageFromInjectedBundle):
(WTR::adoptAndCallCompletionHandler):
(WTR::TestController::setStatisticsDebugMode):
(WTR::TestController::setStatisticsPrevalentResourceForDebugMode):
(WTR::TestController::setStatisticsLastSeen):
(WTR::TestController::setStatisticsMergeStatistic):
(WTR::TestController::setStatisticsExpiredStatistic):
(WTR::TestController::setStatisticsPrevalentResource):
(WTR::TestController::setStatisticsVeryPrevalentResource):
(WTR::TestController::setStatisticsHasHadUserInteraction):
(WTR::TestController::statisticsUpdateCookieBlocking):
(WTR::TestController::statisticsClearInMemoryAndPersistentStore):
(WTR::TestController::statisticsClearInMemoryAndPersistentStoreModifiedSinceHours):
(WTR::TestController::statisticsClearThroughWebsiteDataRemoval):
(WTR::TestController::setStatisticsShouldDowngradeReferrer):
(WTR::TestController::setStatisticsShouldBlockThirdPartyCookies):
(WTR::TestController::setStatisticsFirstPartyWebsiteDataRemovalMode):
(WTR::TestController::setStatisticsToSameSiteStrictCookies):
(WTR::TestController::setStatisticsFirstPartyHostCNAMEDomain):
(WTR::TestController::setStatisticsThirdPartyCNAMEDomain):
(WTR::TestController::statisticsResetToConsistentState):
(WTR::TestController::removeAllCookies):
* Tools/WebKitTestRunner/TestController.h:
* Tools/WebKitTestRunner/TestInvocation.cpp:
(WTR::TestInvocation::didReceiveMessageFromInjectedBundle):
(WTR::TestInvocation::didClearStatisticsInMemoryAndPersistentStore): Deleted.
(WTR::TestInvocation::didClearStatisticsThroughWebsiteDataRemoval): Deleted.
(WTR::TestInvocation::didSetShouldDowngradeReferrer): Deleted.
(WTR::TestInvocation::didSetShouldBlockThirdPartyCookies): Deleted.
(WTR::TestInvocation::didSetFirstPartyWebsiteDataRemovalMode): Deleted.
(WTR::TestInvocation::didSetToSameSiteStrictCookies): Deleted.
(WTR::TestInvocation::didSetFirstPartyHostCNAMEDomain): Deleted.
(WTR::TestInvocation::didSetThirdPartyCNAMEDomain): Deleted.
(WTR::TestInvocation::didResetStatisticsToConsistentState): Deleted.
(WTR::TestInvocation::didSetBlockCookiesForHost): Deleted.
(WTR::TestInvocation::didSetPrevalentResourceForDebugMode): Deleted.
(WTR::TestInvocation::didSetLastSeen): Deleted.
(WTR::TestInvocation::didMergeStatistic): Deleted.
(WTR::TestInvocation::didSetExpiredStatistic): Deleted.
(WTR::TestInvocation::didSetPrevalentResource): Deleted.
(WTR::TestInvocation::didSetVeryPrevalentResource): Deleted.
(WTR::TestInvocation::didSetHasHadUserInteraction): Deleted.
* Tools/WebKitTestRunner/TestInvocation.h:
Canonical link: https://commits.webkit.org/277962@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes