Changeset 239196 in webkit


Ignore:
Timestamp:
Dec 13, 2018 8:09:59 PM (5 years ago)
Author:
commit-queue@webkit.org
Message:

[iOS] Web Inspector: Occasional UIProcess crashes under WebPageProxy::showInspectorIndication
https://bugs.webkit.org/show_bug.cgi?id=192689
<rdar://problem/46323610>

Patch by Joseph Pecoraro <Joseph Pecoraro> on 2018-12-13
Reviewed by Simon Fraser.

  • UIProcess/WebPageProxy.cpp:

(WebKit::WebPageProxy::close):

  • UIProcess/WebPageProxy.h:

Don't wait until ~WebPageProxy to destroy the WebPageProxyDebuggable
which broadcasts it as a remote inspector target. Terminate this
as soon as the WebPageProxy closes and becomes invalid.

Location:
trunk/Source/WebKit
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r239194 r239196  
     12018-12-13  Joseph Pecoraro  <pecoraro@apple.com>
     2
     3        [iOS] Web Inspector: Occasional UIProcess crashes under WebPageProxy::showInspectorIndication
     4        https://bugs.webkit.org/show_bug.cgi?id=192689
     5        <rdar://problem/46323610>
     6
     7        Reviewed by Simon Fraser.
     8
     9        * UIProcess/WebPageProxy.cpp:
     10        (WebKit::WebPageProxy::close):
     11        * UIProcess/WebPageProxy.h:
     12        Don't wait until ~WebPageProxy to destroy the WebPageProxyDebuggable
     13        which broadcasts it as a remote inspector target. Terminate this
     14        as soon as the WebPageProxy closes and becomes invalid.
     15
    1162018-12-13  Chris Dumez  <cdumez@apple.com>
    217
  • trunk/Source/WebKit/UIProcess/WebPageProxy.cpp

    r239182 r239196  
    959959    m_backForwardList->pageClosed();
    960960    m_inspectorController->pageClosed();
     961#if ENABLE(REMOTE_INSPECTOR)
     962    m_inspectorDebuggable = nullptr;
     963#endif
    961964    pageClient().pageClosed();
    962965
  • trunk/Source/WebKit/UIProcess/WebPageProxy.h

    r239182 r239196  
    22962296    const std::unique_ptr<WebPageInspectorController> m_inspectorController;
    22972297#if ENABLE(REMOTE_INSPECTOR)
    2298     const std::unique_ptr<WebPageDebuggable> m_inspectorDebuggable;
     2298    std::unique_ptr<WebPageDebuggable> m_inspectorDebuggable;
    22992299#endif
    23002300
Note: See TracChangeset for help on using the changeset viewer.