Index: Source/web/FrameLoaderClientImpl.cpp |
diff --git a/Source/web/FrameLoaderClientImpl.cpp b/Source/web/FrameLoaderClientImpl.cpp |
index 487e4a771da87db2c681bf7715a76206c56998f4..50dd0b5bc02398c86216f36b191a768c4eeddc35 100644 |
--- a/Source/web/FrameLoaderClientImpl.cpp |
+++ b/Source/web/FrameLoaderClientImpl.cpp |
@@ -58,6 +58,7 @@ |
#include "bindings/v8/ScriptController.h" |
#include "core/dom/Document.h" |
#include "core/dom/DocumentFullscreen.h" |
+#include "core/dom/EventHandlerRegistry.h" |
#include "core/events/MessageEvent.h" |
#include "core/events/MouseEvent.h" |
#include "core/dom/WheelController.h" |
@@ -119,6 +120,7 @@ void FrameLoaderClientImpl::dispatchDidClearWindowObjectInWorld(DOMWrapperWorld& |
Document* document = m_webFrame->frame()->document(); |
if (document) { |
WheelController::from(*document); |
+ EventHandlerRegistry::from(*document); |
abarth-chromium
2014/04/17 18:05:12
I don't think this is needed. Does your test fail
Sami
2014/04/17 18:40:53
The test passes fine without this. I only added it
|
if (RuntimeEnabledFeatures::deviceMotionEnabled()) |
DeviceMotionController::from(*document); |
if (RuntimeEnabledFeatures::deviceOrientationEnabled()) |