This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
After commit 039ebd9, some tests run with ITM disabled despite --acce…
…ssibility-isolated-tree flag being passed https://bugs.webkit.org/show_bug.cgi?id=240627 Reviewed by Chris Fleizach. 039ebd9 changed TestController::resetStateToConsistentValues to only send the "Reset" message to the testing InjectedBundle after a test completed, rather than before and after each test. This is a good and logical change, but exposed a bug in how we set InjectedBundle::m_accessibilityIsolatedTree, since we relied on this "Reset" behavior to setup this member variable. With this patch, we instead set InjectedBundle::m_accessibilityIsolatedTree in response to the "BeginTest" message, which fixes the issue. * Tools/WebKitTestRunner/InjectedBundle/InjectedBundle.cpp: (WTR::InjectedBundle::didReceiveMessageToPage): * Tools/WebKitTestRunner/TestController.cpp: (WTR::TestController::resetStateToConsistentValues): * Tools/WebKitTestRunner/TestInvocation.cpp: (WTR::TestInvocation::createTestSettingsDictionary): Canonical link: https://commits.webkit.org/250802@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@294547 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing 3 changed files with 6 additions and 8 deletions.