| Index: Source/core/page/EventHandler.cpp
|
| diff --git a/Source/core/page/EventHandler.cpp b/Source/core/page/EventHandler.cpp
|
| index 93ba5966c120b44d4ba665ff7b8e2f41e8bdf7d2..88b48f762ccd1ee8c5d45cc73623348fefb66f0e 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"
|
| @@ -3554,7 +3555,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();
|
|
|