| Index: Source/core/dom/Document.cpp
|
| diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp
|
| index 996a28e911bf13003b2f50d01cf4cf77b99a505b..1de35c38a5b1870feb0483eaa733b1b4adc88c60 100644
|
| --- a/Source/core/dom/Document.cpp
|
| +++ b/Source/core/dom/Document.cpp
|
| @@ -110,6 +110,7 @@
|
| #include "core/events/PageTransitionEvent.h"
|
| #include "core/events/ScopedEventQueue.h"
|
| #include "core/fetch/ResourceFetcher.h"
|
| +#include "core/frame/EventHandlerRegistry.h"
|
| #include "core/frame/LocalDOMWindow.h"
|
| #include "core/frame/FrameConsole.h"
|
| #include "core/frame/FrameHost.h"
|
| @@ -2204,6 +2205,7 @@ void Document::detach(const AttachContext& context)
|
|
|
| if (Document* parentDoc = parentDocument())
|
| parentDoc->didClearTouchEventHandlers(this);
|
| + frameHost()->eventHandlerRegistry().documentDetached(*this);
|
|
|
| // This is required, as our LocalFrame might delete itself as soon as it detaches
|
| // us. However, this violates Node::detach() semantics, as it's never
|
|
|