Web Inspector: REGRESSION: 2nd level inspector should not be able to dock to first
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 9 Nov 2015 22:07:19 +0000 (22:07 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 9 Nov 2015 22:07:19 +0000 (22:07 +0000)
https://bugs.webkit.org/show_bug.cgi?id=151050

Patch by Joseph Pecoraro <pecoraro@apple.com> on 2015-11-09
Reviewed by Brian Burg.

* UIProcess/mac/WebInspectorProxyMac.mm:
(WebKit::WebInspectorProxy::platformCanAttach):
Check now that the inspected view can be a WKWebView.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@192178 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebKit2/ChangeLog
Source/WebKit2/UIProcess/mac/WebInspectorProxyMac.mm

index 960a756..42adc87 100644 (file)
@@ -1,3 +1,14 @@
+2015-11-09  Joseph Pecoraro  <pecoraro@apple.com>
+
+        Web Inspector: REGRESSION: 2nd level inspector should not be able to dock to first
+        https://bugs.webkit.org/show_bug.cgi?id=151050
+
+        Reviewed by Brian Burg.
+
+        * UIProcess/mac/WebInspectorProxyMac.mm:
+        (WebKit::WebInspectorProxy::platformCanAttach):
+        Check now that the inspected view can be a WKWebView.
+
 2015-11-09  Anders Carlsson  <andersca@apple.com>
 
         Introspect reply block types as well
index 8b98e64..b1be5e7 100644 (file)
@@ -468,7 +468,7 @@ bool WebInspectorProxy::platformCanAttach(bool webProcessCanAttach)
         return false;
 
     NSView *inspectedView = inspectedPage()->inspectorAttachmentView();
-    if ([inspectedView isKindOfClass:[WKView class]])
+    if ([inspectedView isKindOfClass:[WKView class]] || [inspectedView isKindOfClass:[WKWebView class]])
         return webProcessCanAttach;
 
     static const float minimumAttachedHeight = 250;