Index: Source/WebCore/page/DOMWindow.cpp |
=================================================================== |
--- Source/WebCore/page/DOMWindow.cpp (revision 138268) |
+++ Source/WebCore/page/DOMWindow.cpp (working copy) |
@@ -1685,6 +1685,10 @@ |
if (DeviceOrientationController* controller = DeviceOrientationController::from(page())) |
controller->removeAllDeviceEventListeners(this); |
#endif |
+#if ENABLE(TOUCH_EVENTS) |
+ if (Document* document = this->document()) |
+ document->didRemoveEventTargetNode(document); |
+#endif |
removeAllUnloadEventListeners(this); |
removeAllBeforeUnloadEventListeners(this); |