Index: Source/core/dom/Document.cpp |
diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp |
index b4ebe61b5de024fe90943ac5d6f4081293bcadb7..8b9a6936035e53b7ecaf3eb0331881088bf4aa8c 100644 |
--- a/Source/core/dom/Document.cpp |
+++ b/Source/core/dom/Document.cpp |
@@ -2692,6 +2692,8 @@ void Document::dispatchUnloadEvents() |
&& isSecureTransitionTo(m_frame->loader().provisionalDocumentLoader()->url()); |
if (!keepEventListeners) |
removeAllEventListenersRecursively(); |
+ if (RuntimeEnabledFeatures::scrollCustomizationEnabled()) |
+ Element::removeScrollCustomizationCallbacksForDocument(this); |
haraken
2015/08/13 23:42:05
Why do we need to remove callbacks in dispatchUnlo
|
} |
Document::PageDismissalType Document::pageDismissalEventBeingDispatched() const |