Prevent attaching when inspecting the Web Inspector.
Source/WebCore:
https://webkit.org/b/78304
Reviewed by Brian Weinstein.
* inspector/InspectorFrontendClientLocal.cpp:
(WebCore::InspectorFrontendClientLocal::canAttachWindow): Prevent attaching when the page is an inspector page.
Source/WebKit2:
Also adds some comments about keeping in sync with InspectorFrontendClientLocal::canAttachWindow
and why there are two implementations of the same function.
https://webkit.org/b/78304
Reviewed by Brian Weinstein.
* UIProcess/WebInspectorProxy.cpp:
(WebKit::WebInspectorProxy::canAttach): Prevent attaching when the page is an inspector page.
Added comments about InspectorFrontendClientLocal::canAttachWindow.
* UIProcess/WebInspectorProxy.h:
(WebInspectorProxy): Added comment about keeping in sync with InspectorFrontendClientLocal.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@107362
268f45cc-cd09-0410-ab3c-
d52691b4dbfc