| Index: third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp
|
| diff --git a/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp b/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp
|
| index 651293ff2a1804bfc14b993f0922daa618a61f9c..a0980bf95495e200242827965456f8678fe99b32 100644
|
| --- a/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp
|
| +++ b/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp
|
| @@ -514,6 +514,12 @@
|
| domWindowProperty->willDestroyGlobalObjectInFrame();
|
| }
|
|
|
| +void LocalDOMWindow::willDetachDocumentFromFrame()
|
| +{
|
| + for (const auto& domWindowProperty : m_properties)
|
| + domWindowProperty->willDetachGlobalObjectFromFrame();
|
| +}
|
| +
|
| void LocalDOMWindow::registerProperty(DOMWindowProperty* property)
|
| {
|
| m_properties.add(property);
|
|
|