RESOLVED FIXED27140
Add a preference key to make Web Inspector detach/attach by default
https://bugs.webkit.org/show_bug.cgi?id=27140
Summary Add a preference key to make Web Inspector detach/attach by default
Brian Weinstein
Reported 2009-07-09 18:05:52 PDT
There should be a preferences key or some other way to have the inspector dock to the webview when shown by default instead of having to open it then manually dock it (Windows version). <rdar://5712929>
Attachments
Windows Patch (3.98 KB, patch)
2009-07-09 18:06 PDT, Brian Weinstein
no flags
Brian Weinstein
Comment 1 2009-07-09 18:06:36 PDT
Created attachment 32545 [details] Windows Patch
Alice Liu
Comment 2 2009-07-09 18:33:21 PDT
Comment on attachment 32545 [details] Windows Patch > @@ -322,6 +324,9 @@ void WebInspectorClient::showWindowWitho > ASSERT(m_webView); > ASSERT(m_inspectedWebViewHwnd); > > + InspectorController::Setting shouldAttach = m_inspectedWebView->page()->inspectorController()->setting(inspectorStartsAttachedName); > + m_shouldAttachWhenShown = (shouldAttach.type() == InspectorController::Setting::BooleanType) ? shouldAttach.booleanValue() : false; > + > if (!m_shouldAttachWhenShown) { > // Put the Inspector's WebView inside our window and show it. > m_webView->setHostWindow(reinterpret_cast<OLE_HANDLE>(m_hwnd)); bdash wants you to remove the extraneous parents around the condition before the question mark r=me
Brian Weinstein
Comment 3 2009-07-09 18:50:56 PDT
Committed in revision 45689.
Adam Roben (:aroben)
Comment 4 2009-07-10 08:05:33 PDT
Comment on attachment 32545 [details] Windows Patch I think it's a shame that all this work was done up at the WebKit level. (Almost?) All of this code should be cross-platform, instead of duplicated between Mac (in bug 27141) and Windows. I'd really like to see this moved down into WebCore.
Adam Roben (:aroben)
Comment 5 2009-07-10 08:51:20 PDT
(In reply to comment #4) > (From update of attachment 32545 [details]) > I think it's a shame that all this work was done up at the WebKit level. > (Almost?) All of this code should be cross-platform, instead of duplicated > between Mac (in bug 27141) and Windows. I'd really like to see this moved down > into WebCore. It is great to have the bug fixed, though!
Note You need to log in before you can comment on or make changes to this bug.