Changeset 205299 in webkit


Ignore:
Timestamp:
Sep 1, 2016 11:08:54 AM (8 years ago)
Author:
commit-queue@webkit.org
Message:

[Mac] Web Inspector: Remove stale inspector process termination code
https://bugs.webkit.org/show_bug.cgi?id=161465
<rdar://problem/28106584>

Patch by Joseph Pecoraro <Joseph Pecoraro> on 2016-09-01
Reviewed by Brian Burg.

  • UIProcess/WebInspectorProxy.cpp:

(WebKit::WebInspectorProxy::didRelaunchInspectorPageProcess): Deleted.

  • UIProcess/WebInspectorProxy.h:
  • UIProcess/mac/WebInspectorProxyMac.mm:

(-[WKWebInspectorProxyObjCAdapter didRelaunchProcess]): Deleted.
(-[WKWebInspectorWKWebView _didRelaunchProcess]): Deleted.
This code doesn't appear to be run when the WebContent process inside
of an Inspector process crashes. The general WebInspectorProxy has its
own handling of when the page inside an inspector process crashes, so
this Mac specific path appears to be unused and stale.

Location:
trunk/Source/WebKit2
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r205294 r205299  
     12016-09-01  Joseph Pecoraro  <pecoraro@apple.com>
     2
     3        [Mac] Web Inspector: Remove stale inspector process termination code
     4        https://bugs.webkit.org/show_bug.cgi?id=161465
     5        <rdar://problem/28106584>
     6
     7        Reviewed by Brian Burg.
     8
     9        * UIProcess/WebInspectorProxy.cpp:
     10        (WebKit::WebInspectorProxy::didRelaunchInspectorPageProcess): Deleted.
     11        * UIProcess/WebInspectorProxy.h:
     12        * UIProcess/mac/WebInspectorProxyMac.mm:
     13        (-[WKWebInspectorProxyObjCAdapter didRelaunchProcess]): Deleted.
     14        (-[WKWebInspectorWKWebView _didRelaunchProcess]): Deleted.
     15        This code doesn't appear to be run when the WebContent process inside
     16        of an Inspector process crashes. The general WebInspectorProxy has its
     17        own handling of when the page inside an inspector process crashes, so
     18        this Mac specific path appears to be unused and stale.
     19
    1202016-09-01  Jeremy Huddleston Sequoia  <jeremyhu@apple.com>
    221
  • trunk/Source/WebKit2/UIProcess/WebInspectorProxy.cpp

    r202700 r205299  
    179179}
    180180
    181 void WebInspectorProxy::didRelaunchInspectorPageProcess()
    182 {
    183     m_inspectorPage->process().addMessageReceiver(Messages::WebInspectorProxy::messageReceiverName(), m_inspectedPage->pageID(), *this);
    184     m_inspectorPage->process().assumeReadAccessToBaseURL(WebInspectorProxy::inspectorBaseURL());
    185 
    186     // When didRelaunchInspectorPageProcess is called we can assume it is during a load request.
    187     // Any messages we would have sent to a terminated process need to be re-sent.
    188 
    189     m_inspectorPage->process().send(Messages::WebInspectorUI::EstablishConnection(m_connectionIdentifier, m_inspectedPage->pageID(), m_underTest, inspectionLevel()), m_inspectorPage->pageID());
    190 }
    191 
    192181void WebInspectorProxy::showConsole()
    193182{
  • trunk/Source/WebKit2/UIProcess/WebInspectorProxy.h

    r204668 r205299  
    9393    void close();
    9494
    95     void didRelaunchInspectorPageProcess();
    96 
    9795#if PLATFORM(MAC) && WK_API_ENABLED
    9896    void createInspectorWindow();
  • trunk/Source/WebKit2/UIProcess/mac/WebInspectorProxyMac.mm

    r200119 r205299  
    7272- (id)initWithWebInspectorProxy:(WebInspectorProxy*)inspectorProxy;
    7373- (void)close;
    74 - (void)didRelaunchProcess;
    7574
    7675@end
     
    9897{
    9998    _inspectorProxy = nullptr;
    100 }
    101 
    102 - (void)didRelaunchProcess
    103 {
    104     static_cast<WebInspectorProxy*>(_inspectorProxy)->didRelaunchInspectorPageProcess();
    10599}
    106100
     
    161155{
    162156    return WKInspectorViewTag;
    163 }
    164 
    165 - (void)_didRelaunchProcess
    166 {
    167     [self.inspectorProxyObjCAdapter didRelaunchProcess];
    168157}
    169158
Note: See TracChangeset for help on using the changeset viewer.