| Index: Source/core/page/Page.cpp
|
| diff --git a/Source/core/page/Page.cpp b/Source/core/page/Page.cpp
|
| index cc6ac482156b4a93da92de568dac39924879b1f5..ed1112c795862d4d1b849127ae101f74d189b8a6 100644
|
| --- a/Source/core/page/Page.cpp
|
| +++ b/Source/core/page/Page.cpp
|
| @@ -395,6 +395,10 @@ void Page::setVisibilityState(PageVisibilityState visibilityState, bool isInitia
|
|
|
| if (!isInitialState && m_mainFrame && m_mainFrame->isLocalFrame())
|
| deprecatedLocalMainFrame()->didChangeVisibilityState();
|
| +
|
| + // TODO(bashi): Invoke this few seconds later.
|
| + if (visibilityState != PageVisibilityStateVisible)
|
| + m_memoryPurgeController.didBecomeInactive();
|
| }
|
|
|
| PageVisibilityState Page::visibilityState() const
|
|
|