Commit 889fdd3a authored by gns@gnome.org's avatar gns@gnome.org

REGRESSION(r158976): Web Inspector: unable to start docked or dock

https://bugs.webkit.org/show_bug.cgi?id=124148

Reviewed by Timothy Hatcher.

* UIProcess/WebInspectorProxy.cpp:
(WebKit::WebInspectorProxy::canAttach): check for a level that is greater than 1 rather than 0
to deny attachment, since 1 is the first level of inspectors.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159090 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 54b12055
2013-11-11 Gustavo Noronha Silva <gns@gnome.org>
REGRESSION(r158976): Web Inspector: unable to start docked or dock
https://bugs.webkit.org/show_bug.cgi?id=124148
Reviewed by Timothy Hatcher.
* UIProcess/WebInspectorProxy.cpp:
(WebKit::WebInspectorProxy::canAttach): check for a level that is greater than 1 rather than 0
to deny attachment, since 1 is the first level of inspectors.
2013-11-11 Anders Carlsson <andersca@apple.com>
FrameFilter can just be an std::function instead
......
......@@ -549,7 +549,7 @@ bool WebInspectorProxy::canAttach()
return true;
// Don't allow attaching to another inspector -- two inspectors in one window is too much!
if (m_level > 0)
if (m_level > 1)
return false;
// Don't allow the attach if the window would be too small to accommodate the minimum inspector height.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment