Index: third_party/WebKit/Source/core/loader/FrameLoader.cpp |
diff --git a/third_party/WebKit/Source/core/loader/FrameLoader.cpp b/third_party/WebKit/Source/core/loader/FrameLoader.cpp |
index 27cc4b93872c298865140447341d021f73a9bb7a..3975b87c868d9ecaea01b805a1472e715b18af87 100644 |
--- a/third_party/WebKit/Source/core/loader/FrameLoader.cpp |
+++ b/third_party/WebKit/Source/core/loader/FrameLoader.cpp |
@@ -1087,8 +1087,10 @@ void FrameLoader::commitProvisionalLoad() |
if (!prepareForCommit()) |
return; |
- if (isLoadingMainFrame()) |
- m_frame->page()->chromeClient().needTouchEvents(false); |
+ if (isLoadingMainFrame()) { |
+ m_frame->page()->chromeClient().setEventListenerProperties(WebEventListenerClass::Touch, WebEventListenerProperties::Nothing); |
+ m_frame->page()->chromeClient().setEventListenerProperties(WebEventListenerClass::MouseWheel, WebEventListenerProperties::Nothing); |
+ } |
client()->transitionToCommittedForNewPage(); |
m_frame->navigationScheduler().cancel(); |