Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
[WPE] EventSenderProxy constructor is called before a PlatformWindow …
…is usable https://bugs.webkit.org/show_bug.cgi?id=196441 Reviewed by Carlos Garcia Campos. Don't cache the wpe_view_backend object that might not exist yet at the time of EventSenderProxy constructor invocation, but instead retrieve that object whenever it's required for event dispatching. This should avoid crashes in this constructor now that it's invoked before any PlatformWindow has been set up (as changed in r243496). * WebKitTestRunner/EventSenderProxy.h: * WebKitTestRunner/wpe/EventSenderProxyWPE.cpp: (WTR::viewBackend): (WTR::EventSenderProxy::EventSenderProxy): (WTR::EventSenderProxy::mouseDown): (WTR::EventSenderProxy::mouseUp): (WTR::EventSenderProxy::mouseMoveTo): (WTR::EventSenderProxy::mouseScrollBy): (WTR::EventSenderProxy::keyDown): (WTR::EventSenderProxy::prepareAndDispatchTouchEvent): Canonical link: https://commits.webkit.org/210705@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@243689 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
3 changed files
with
37 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters