| Index: Source/core/page/EventHandler.cpp
|
| diff --git a/Source/core/page/EventHandler.cpp b/Source/core/page/EventHandler.cpp
|
| index 757bdf11c82ae9d1d1eb1f115577fc3b10074a04..5540228ddd663f5b739f800fee3943ad7ad0de71 100644
|
| --- a/Source/core/page/EventHandler.cpp
|
| +++ b/Source/core/page/EventHandler.cpp
|
| @@ -51,6 +51,7 @@
|
| #include "core/events/TouchEvent.h"
|
| #include "core/events/WheelEvent.h"
|
| #include "core/fetch/ImageResource.h"
|
| +#include "core/frame/EventHandlerRegistry.h"
|
| #include "core/frame/FrameView.h"
|
| #include "core/frame/LocalFrame.h"
|
| #include "core/frame/Settings.h"
|
| @@ -3585,7 +3586,7 @@ bool EventHandler::handleTouchEvent(const PlatformTouchEvent& event)
|
| // If there's no document receiving touch events, or no handlers on the
|
| // document set to receive the events, then we can skip all the rest of
|
| // this work.
|
| - if (!m_touchSequenceDocument || !m_touchSequenceDocument->hasTouchEventHandlers() || !m_touchSequenceDocument->frame()) {
|
| + if (!m_touchSequenceDocument || !m_touchSequenceDocument->frameHost() || !m_touchSequenceDocument->frameHost()->eventHandlerRegistry().hasEventHandlers(EventHandlerRegistry::TouchEvent) || !m_touchSequenceDocument->frame()) {
|
| if (allTouchReleased) {
|
| m_touchSequenceDocument.clear();
|
| m_touchSequenceUserGestureToken.clear();
|
|
|