summaryrefslogtreecommitdiff
path: root/Source/WebKit2/UIProcess/WebInspectorProxy.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebKit2/UIProcess/WebInspectorProxy.cpp')
-rw-r--r--Source/WebKit2/UIProcess/WebInspectorProxy.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/WebKit2/UIProcess/WebInspectorProxy.cpp b/Source/WebKit2/UIProcess/WebInspectorProxy.cpp
index 825420a4a..cb5df7906 100644
--- a/Source/WebKit2/UIProcess/WebInspectorProxy.cpp
+++ b/Source/WebKit2/UIProcess/WebInspectorProxy.cpp
@@ -207,6 +207,8 @@ void WebInspectorProxy::createInspectorPage(uint64_t& inspectorPageID, WebPageCr
if (!m_page)
return;
+ m_isAttached = shouldOpenAttached();
+
WebPageProxy* inspectorPage = platformCreateInspectorPage();
ASSERT(inspectorPage);
if (!inspectorPage)
@@ -216,7 +218,7 @@ void WebInspectorProxy::createInspectorPage(uint64_t& inspectorPageID, WebPageCr
inspectorPageParameters = inspectorPage->creationParameters();
String url = inspectorPageURL();
- if (shouldOpenAttached())
+ if (m_isAttached)
url += "?docked=true";
m_page->process()->assumeReadAccessToBaseURL(inspectorBaseURL());
inspectorPage->loadURL(url);
@@ -225,7 +227,6 @@ void WebInspectorProxy::createInspectorPage(uint64_t& inspectorPageID, WebPageCr
void WebInspectorProxy::didLoadInspectorPage()
{
m_isVisible = true;
- m_isAttached = shouldOpenAttached();
// platformOpen is responsible for rendering attached mode depending on m_isAttached.
platformOpen();