예제 #1
0
void InspectorController::inspectedPageDestroyed()
{
    m_injectedScriptManager->disconnect();

    // If the local frontend page was destroyed, close the window.
    if (m_inspectorFrontendClient)
        m_inspectorFrontendClient->closeWindow();

    // The frontend should call setInspectorFrontendClient(nullptr) under closeWindow().
    ASSERT(!m_inspectorFrontendClient);

    // Clean up resources and disconnect local and remote frontends.
    disconnectAllFrontends();
}
void JSGlobalObjectInspectorController::globalObjectDestroyed()
{
    disconnectAllFrontends();

    m_injectedScriptManager->disconnect();
}