| Index: Source/core/frame/DOMWindow.cpp
|
| diff --git a/Source/core/frame/DOMWindow.cpp b/Source/core/frame/DOMWindow.cpp
|
| index 1be25580cdf8821a5d4908e18cc287336b52db5f..00859fe18f25b76f3b5d0152f97b14f10d7d1565 100644
|
| --- a/Source/core/frame/DOMWindow.cpp
|
| +++ b/Source/core/frame/DOMWindow.cpp
|
| @@ -323,6 +323,9 @@ bool DOMWindow::canShowModalDialogNow(const LocalFrame* frame)
|
| DOMWindow::DOMWindow(LocalFrame& frame)
|
| : FrameDestructionObserver(&frame)
|
| , m_shouldPrintWhenFinishedLoading(false)
|
| +#if !ASSERT_DISABLED
|
| + , m_hasBeenReset(false)
|
| +#endif
|
| {
|
| ScriptWrappable::init(this);
|
| }
|
| @@ -477,23 +480,7 @@ void DOMWindow::statePopped(PassRefPtr<SerializedScriptValue> stateObject)
|
|
|
| DOMWindow::~DOMWindow()
|
| {
|
| - ASSERT(!m_screen);
|
| - ASSERT(!m_history);
|
| - ASSERT(!m_locationbar);
|
| - ASSERT(!m_menubar);
|
| - ASSERT(!m_personalbar);
|
| - ASSERT(!m_scrollbars);
|
| - ASSERT(!m_statusbar);
|
| - ASSERT(!m_toolbar);
|
| - ASSERT(!m_console);
|
| - ASSERT(!m_navigator);
|
| - ASSERT(!m_performance);
|
| - ASSERT(!m_location);
|
| - ASSERT(!m_media);
|
| - ASSERT(!m_sessionStorage);
|
| - ASSERT(!m_localStorage);
|
| - ASSERT(!m_applicationCache);
|
| -
|
| + ASSERT(m_hasBeenReset);
|
| reset();
|
|
|
| removeAllEventListeners();
|
| @@ -594,6 +581,9 @@ void DOMWindow::resetDOMWindowProperties()
|
| m_sessionStorage = nullptr;
|
| m_localStorage = nullptr;
|
| m_applicationCache = nullptr;
|
| +#if !ASSERT_DISABLED
|
| + m_hasBeenReset = true;
|
| +#endif
|
| }
|
|
|
| bool DOMWindow::isCurrentlyDisplayedInFrame() const
|
|
|