This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
REGRESSION(r188548): Some tests crash after r188548 because injected …
…bundle messages are received after the test finishes https://bugs.webkit.org/show_bug.cgi?id=148529 Reviewed by Darin Adler. When there are pending EventSender messages after a test finishes, they could be processed in the main loop started by the resetStateToConsistentValues(), but the old EventSender has been replaced by a new one at that point. The new Eventsender can crash when processing messages that were sent to the old one. To avoid this, we return early when receiving an EventSender message and the TestController state is not RunningTest. * WebKitTestRunner/TestController.cpp: (WTR::TestController::didReceiveKeyDownMessageFromInjectedBundle): (WTR::TestController::didReceiveMessageFromInjectedBundle): Canonical link: https://commits.webkit.org/166824@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@189246 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing 2 changed files with 25 additions and 0 deletions.