Web Inspector: WebInspectorProxy releases WKWebInspectorProxyObjCAdapter without...
authormattbaker@apple.com <mattbaker@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 22 Apr 2018 23:03:44 +0000 (23:03 +0000)
committermattbaker@apple.com <mattbaker@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 22 Apr 2018 23:03:44 +0000 (23:03 +0000)
commit2b689e1edfbdcb1764d8ad4d156a786c8e09bb9b
tree91470e72cd823cd1d170d95315b68ae210b5d8be
parent81adc1e5d4a1c5b0fcd1bcf546e8eec6767f7ff6
Web Inspector: WebInspectorProxy releases WKWebInspectorProxyObjCAdapter without removing corresponding observer
https://bugs.webkit.org/show_bug.cgi?id=184865
<rdar://problem/37764960>

Reviewed by Brian Burg.

Replace the early return removed in https://bugs.webkit.org/show_bug.cgi?id=177661,
so that WKWebInspectorProxyObjCAdapter and the view controller can be reused
when reopening the Inspector while the WebView is still alive.

* UIProcess/mac/WebInspectorProxyMac.mm:
(WebKit::WebInspectorProxy::platformCreateFrontendPage):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@230903 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebKit/ChangeLog
Source/WebKit/UIProcess/mac/WebInspectorProxyMac.mm