Changeset 264999 in webkit
- Timestamp:
- Jul 28, 2020 12:21:35 PM (4 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r264990 r264999 1 2020-07-28 Timothy Hatcher <timothy@apple.com> 2 3 Web Inspector: Don't allow docking to a hidden web view 4 https://bugs.webkit.org/show_bug.cgi?id=214886 5 6 Reviewed by Devin Rousso. 7 8 * UIProcess/Inspector/WebInspectorProxy.cpp: 9 (WebKit::WebInspectorProxy::attach): Call platformCanAttach() since it can do a live check. 10 (WebKit::WebInspectorProxy::detach): Return early if already attached, otherwise asserts later. 11 * UIProcess/Inspector/mac/WebInspectorProxyMac.mm: 12 (WebKit::WebInspectorProxy::platformCanAttach): Return flase when the web view is hidden. 13 1 14 2020-07-28 Alex Christensen <achristensen@webkit.org> 2 15 -
trunk/Source/WebKit/UIProcess/Inspector/WebInspectorProxy.cpp
r264803 r264999 280 280 { 281 281 ASSERT(m_inspectorPage); 282 if (!m_inspectedPage || !m_inspectorPage || ! canAttach())282 if (!m_inspectedPage || !m_inspectorPage || !platformCanAttach(canAttach())) 283 283 return; 284 284 … … 312 312 void WebInspectorProxy::detach() 313 313 { 314 if (!m_inspectedPage || !m_inspectorPage )314 if (!m_inspectedPage || !m_inspectorPage || (!m_isAttached && m_isVisible)) 315 315 return; 316 316 -
trunk/Source/WebKit/UIProcess/Inspector/mac/WebInspectorProxyMac.mm
r264526 r264999 412 412 return webProcessCanAttach; 413 413 414 if (inspectedView.hidden) 415 return false; 416 414 417 static const float minimumAttachedHeight = 250; 415 418 static const float maximumAttachedHeightRatio = 0.75;
Note: See TracChangeset
for help on using the changeset viewer.