[GTK] WebDriver: implement AutomationSessionClient::didDisconnectFromRemote
[WebKit-https.git] / Source / WebKit / UIProcess / API / glib / WebKitWebContext.cpp
index 134ca5c..b52591d 100644 (file)
@@ -242,6 +242,12 @@ private:
 
     WebKitWebContext* m_webContext;
 };
+
+void webkitWebContextWillCloseAutomationSession(WebKitWebContext* webContext)
+{
+    webContext->priv->processPool->setAutomationSession(nullptr);
+    webContext->priv->automationSession = nullptr;
+}
 #endif // ENABLE(REMOTE_INSPECTOR)
 
 WEBKIT_DEFINE_TYPE(WebKitWebContext, webkit_web_context, G_TYPE_OBJECT)