Changeset 200893 in webkit


Ignore:
Timestamp:
May 13, 2016, 4:29:13 PM (9 years ago)
Author:
Joseph Pecoraro
Message:

Web Inspector: Inform augmenting client when inspector controller is destroyed
https://bugs.webkit.org/show_bug.cgi?id=157688
<rdar://problem/25832724>

Reviewed by Timothy Hatcher.

  • inspector/JSGlobalObjectInspectorController.cpp:

(Inspector::JSGlobalObjectInspectorController::~JSGlobalObjectInspectorController):

  • inspector/augmentable/AugmentableInspectorControllerClient.h:

There is a weak relationship between the InspectorController and the
AugmentingClient. Let the augmenting client know when the controller
is destroyed so it doesn't try to use us anymore.

Location:
trunk/Source/JavaScriptCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r200884 r200893  
     12016-05-13  Joseph Pecoraro  <pecoraro@apple.com>
     2
     3        Web Inspector: Inform augmenting client when inspector controller is destroyed
     4        https://bugs.webkit.org/show_bug.cgi?id=157688
     5        <rdar://problem/25832724>
     6
     7        Reviewed by Timothy Hatcher.
     8
     9        * inspector/JSGlobalObjectInspectorController.cpp:
     10        (Inspector::JSGlobalObjectInspectorController::~JSGlobalObjectInspectorController):
     11        * inspector/augmentable/AugmentableInspectorControllerClient.h:
     12        There is a weak relationship between the InspectorController and the
     13        AugmentingClient. Let the augmenting client know when the controller
     14        is destroyed so it doesn't try to use us anymore.
     15
    1162016-05-13  Geoffrey Garen  <ggaren@apple.com>
    217
  • trunk/Source/JavaScriptCore/inspector/JSGlobalObjectInspectorController.cpp

    r199852 r200893  
    107107JSGlobalObjectInspectorController::~JSGlobalObjectInspectorController()
    108108{
     109#if ENABLE(INSPECTOR_ALTERNATE_DISPATCHERS)
     110    if (m_augmentingClient)
     111        m_augmentingClient->inspectorControllerDestroyed();
     112#endif
    109113}
    110114
  • trunk/Source/JavaScriptCore/inspector/augmentable/AugmentableInspectorControllerClient.h

    r175151 r200893  
    3434public:
    3535    virtual ~AugmentableInspectorControllerClient() { }
     36    virtual void inspectorControllerDestroyed() = 0;
    3637    virtual void inspectorConnected() = 0;
    3738    virtual void inspectorDisconnected() = 0;
Note: See TracChangeset for help on using the changeset viewer.