diff options
Diffstat (limited to 'Source/WebKit2/UIProcess/WebInspectorProxy.cpp')
-rw-r--r-- | Source/WebKit2/UIProcess/WebInspectorProxy.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/WebKit2/UIProcess/WebInspectorProxy.cpp b/Source/WebKit2/UIProcess/WebInspectorProxy.cpp index dfeff6a..2b282a1 100644 --- a/Source/WebKit2/UIProcess/WebInspectorProxy.cpp +++ b/Source/WebKit2/UIProcess/WebInspectorProxy.cpp @@ -23,6 +23,7 @@ * THE POSSIBILITY OF SUCH DAMAGE. */ +#include "config.h" #include "WebInspectorProxy.h" #if ENABLE(INSPECTOR) @@ -69,6 +70,7 @@ WebInspectorProxy::~WebInspectorProxy() void WebInspectorProxy::invalidate() { + m_page->close(); platformClose(); m_page = 0; @@ -156,6 +158,11 @@ void WebInspectorProxy::togglePageProfiling() m_isProfilingPage = !m_isProfilingPage; } +bool WebInspectorProxy::isInspectorPage(WebPageProxy* page) +{ + return page->pageGroup() == inspectorPageGroup(); +} + // Called by WebInspectorProxy messages void WebInspectorProxy::createInspectorPage(uint64_t& inspectorPageID, WebPageCreationParameters& inspectorPageParameters) { |