<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[196821] trunk</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/196821">196821</a></dd>
<dt>Author</dt> <dd>beidson@apple.com</dd>
<dt>Date</dt> <dd>2016-02-19 09:35:52 -0800 (Fri, 19 Feb 2016)</dd>
</dl>

<h3>Log Message</h3>
<pre>Add &quot;databaseProcessDidCrash&quot; to the WKContextClient; Adopt it in WKTR.
https://bugs.webkit.org/show_bug.cgi?id=154428

Reviewed by Jer Noble.

Source/WebKit2:

* UIProcess/API/C/WKContext.h:
* UIProcess/API/C/mac/WKContextPrivateMac.h:
* UIProcess/API/C/mac/WKContextPrivateMac.mm:
(WKContextGetDatabaseProcessIdentifier):

* UIProcess/WebContextClient.cpp:
(WebKit::WebContextClient::databaseProcessDidCrash):
* UIProcess/WebContextClient.h:

* UIProcess/WebProcessPool.cpp:
(WebKit::WebProcessPool::databaseProcessCrashed):
(WebKit::WebProcessPool::databaseProcessIdentifier):
* UIProcess/WebProcessPool.h:

Tools:

* WebKitTestRunner/TestController.cpp:
(WTR::TestController::generatePageConfiguration):
(WTR::TestController::databaseProcessName):
(WTR::TestController::databaseProcessDidCrash):
* WebKitTestRunner/TestController.h:</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkSourceWebKit2ChangeLog">trunk/Source/WebKit2/ChangeLog</a></li>
<li><a href="#trunkSourceWebKit2UIProcessAPICWKContexth">trunk/Source/WebKit2/UIProcess/API/C/WKContext.h</a></li>
<li><a href="#trunkSourceWebKit2UIProcessAPICmacWKContextPrivateMach">trunk/Source/WebKit2/UIProcess/API/C/mac/WKContextPrivateMac.h</a></li>
<li><a href="#trunkSourceWebKit2UIProcessAPICmacWKContextPrivateMacmm">trunk/Source/WebKit2/UIProcess/API/C/mac/WKContextPrivateMac.mm</a></li>
<li><a href="#trunkSourceWebKit2UIProcessWebContextClientcpp">trunk/Source/WebKit2/UIProcess/WebContextClient.cpp</a></li>
<li><a href="#trunkSourceWebKit2UIProcessWebContextClienth">trunk/Source/WebKit2/UIProcess/WebContextClient.h</a></li>
<li><a href="#trunkSourceWebKit2UIProcessWebProcessPoolcpp">trunk/Source/WebKit2/UIProcess/WebProcessPool.cpp</a></li>
<li><a href="#trunkSourceWebKit2UIProcessWebProcessPoolh">trunk/Source/WebKit2/UIProcess/WebProcessPool.h</a></li>
<li><a href="#trunkToolsChangeLog">trunk/Tools/ChangeLog</a></li>
<li><a href="#trunkToolsWebKitTestRunnerTestControllercpp">trunk/Tools/WebKitTestRunner/TestController.cpp</a></li>
<li><a href="#trunkToolsWebKitTestRunnerTestControllerh">trunk/Tools/WebKitTestRunner/TestController.h</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkSourceWebKit2ChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/ChangeLog (196820 => 196821)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/ChangeLog        2016-02-19 16:49:28 UTC (rev 196820)
+++ trunk/Source/WebKit2/ChangeLog        2016-02-19 17:35:52 UTC (rev 196821)
</span><span class="lines">@@ -1,3 +1,24 @@
</span><ins>+2016-02-19  Brady Eidson  &lt;beidson@apple.com&gt;
+
+        Add &quot;databaseProcessDidCrash&quot; to the WKContextClient; Adopt it in WKTR.
+        https://bugs.webkit.org/show_bug.cgi?id=154428
+
+        Reviewed by Jer Noble.
+
+        * UIProcess/API/C/WKContext.h:
+        * UIProcess/API/C/mac/WKContextPrivateMac.h:
+        * UIProcess/API/C/mac/WKContextPrivateMac.mm:
+        (WKContextGetDatabaseProcessIdentifier):
+
+        * UIProcess/WebContextClient.cpp:
+        (WebKit::WebContextClient::databaseProcessDidCrash):
+        * UIProcess/WebContextClient.h:
+
+        * UIProcess/WebProcessPool.cpp:
+        (WebKit::WebProcessPool::databaseProcessCrashed):
+        (WebKit::WebProcessPool::databaseProcessIdentifier):
+        * UIProcess/WebProcessPool.h:
+
</ins><span class="cx"> 2016-02-18  Gwang Yoon Hwang  &lt;yoon@igalia.com&gt;
</span><span class="cx"> 
</span><span class="cx">         [GTK] Limit the number of tiles according to the visible area
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessAPICWKContexth"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/API/C/WKContext.h (196820 => 196821)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/API/C/WKContext.h        2016-02-19 16:49:28 UTC (rev 196820)
+++ trunk/Source/WebKit2/UIProcess/API/C/WKContext.h        2016-02-19 17:35:52 UTC (rev 196821)
</span><span class="lines">@@ -45,10 +45,13 @@
</span><span class="cx"> 
</span><span class="cx"> // Context Client
</span><span class="cx"> typedef void (*WKContextPlugInAutoStartOriginHashesChangedCallback)(WKContextRef context, const void *clientInfo);
</span><del>-typedef void (*WKContextNetworkProcessDidCrashCallback)(WKContextRef context, const void *clientInfo);
</del><span class="cx"> typedef void (*WKContextPlugInInformationBecameAvailableCallback)(WKContextRef context, WKArrayRef plugIn, const void *clientInfo);
</span><span class="cx"> typedef WKDataRef (*WKContextCopyWebCryptoMasterKeyCallback)(WKContextRef context, const void *clientInfo);
</span><span class="cx"> 
</span><ins>+typedef void (*WKContextChildProcessDidCrashCallback)(WKContextRef context, const void *clientInfo);
+typedef WKContextChildProcessDidCrashCallback WKContextNetworkProcessDidCrashCallback;
+typedef WKContextChildProcessDidCrashCallback WKContextDatabaseProcessDidCrashCallback;
+
</ins><span class="cx"> typedef struct WKContextClientBase {
</span><span class="cx">     int                                                                 version;
</span><span class="cx">     const void *                                                        clientInfo;
</span><span class="lines">@@ -75,6 +78,21 @@
</span><span class="cx">     WKContextCopyWebCryptoMasterKeyCallback                             copyWebCryptoMasterKey;
</span><span class="cx"> } WKContextClientV1;
</span><span class="cx"> 
</span><ins>+typedef struct WKContextClientV2 {
+    WKContextClientBase                                                 base;
+
+    // Version 0.
+    WKContextPlugInAutoStartOriginHashesChangedCallback                 plugInAutoStartOriginHashesChanged;
+    WKContextNetworkProcessDidCrashCallback                             networkProcessDidCrash;
+    WKContextPlugInInformationBecameAvailableCallback                   plugInInformationBecameAvailable;
+
+    // Version 1.
+    WKContextCopyWebCryptoMasterKeyCallback                             copyWebCryptoMasterKey;
+
+    // Version 2.
+    WKContextDatabaseProcessDidCrashCallback                            databaseProcessDidCrash;
+} WKContextClientV2;
+
</ins><span class="cx"> // FIXME: Remove these once support for Mavericks has been dropped.
</span><span class="cx"> enum {
</span><span class="cx">     kWKProcessModelSharedSecondaryProcess = 0,
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessAPICmacWKContextPrivateMach"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/API/C/mac/WKContextPrivateMac.h (196820 => 196821)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/API/C/mac/WKContextPrivateMac.h        2016-02-19 16:49:28 UTC (rev 196820)
+++ trunk/Source/WebKit2/UIProcess/API/C/mac/WKContextPrivateMac.h        2016-02-19 17:35:52 UTC (rev 196821)
</span><span class="lines">@@ -78,6 +78,7 @@
</span><span class="cx"> WK_EXPORT bool WKContextShouldSuggestBlockWebGL();
</span><span class="cx"> 
</span><span class="cx"> WK_EXPORT pid_t WKContextGetNetworkProcessIdentifier(WKContextRef context);
</span><ins>+WK_EXPORT pid_t WKContextGetDatabaseProcessIdentifier(WKContextRef context);
</ins><span class="cx"> 
</span><span class="cx"> #ifdef __cplusplus
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessAPICmacWKContextPrivateMacmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/API/C/mac/WKContextPrivateMac.mm (196820 => 196821)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/API/C/mac/WKContextPrivateMac.mm        2016-02-19 16:49:28 UTC (rev 196820)
+++ trunk/Source/WebKit2/UIProcess/API/C/mac/WKContextPrivateMac.mm        2016-02-19 17:35:52 UTC (rev 196821)
</span><span class="lines">@@ -168,3 +168,8 @@
</span><span class="cx"> {
</span><span class="cx">     return toImpl(contextRef)-&gt;networkProcessIdentifier();
</span><span class="cx"> }
</span><ins>+
+pid_t WKContextGetDatabaseProcessIdentifier(WKContextRef contextRef)
+{
+    return toImpl(contextRef)-&gt;databaseProcessIdentifier();
+}
</ins></span></pre></div>
<a id="trunkSourceWebKit2UIProcessWebContextClientcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/WebContextClient.cpp (196820 => 196821)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/WebContextClient.cpp        2016-02-19 16:49:28 UTC (rev 196820)
+++ trunk/Source/WebKit2/UIProcess/WebContextClient.cpp        2016-02-19 17:35:52 UTC (rev 196821)
</span><span class="lines">@@ -47,6 +47,14 @@
</span><span class="cx">     m_client.networkProcessDidCrash(toAPI(processPool), m_client.base.clientInfo);
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+void WebContextClient::databaseProcessDidCrash(WebProcessPool* processPool)
+{
+    if (!m_client.databaseProcessDidCrash)
+        return;
+
+    m_client.databaseProcessDidCrash(toAPI(processPool), m_client.base.clientInfo);
+}
+
</ins><span class="cx"> void WebContextClient::plugInInformationBecameAvailable(WebProcessPool* processPool, API::Array* plugInInfo)
</span><span class="cx"> {
</span><span class="cx">     if (!m_client.plugInInformationBecameAvailable)
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessWebContextClienth"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/WebContextClient.h (196820 => 196821)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/WebContextClient.h        2016-02-19 16:49:28 UTC (rev 196820)
+++ trunk/Source/WebKit2/UIProcess/WebContextClient.h        2016-02-19 17:35:52 UTC (rev 196821)
</span><span class="lines">@@ -34,7 +34,7 @@
</span><span class="cx"> class Array;
</span><span class="cx"> 
</span><span class="cx"> template&lt;&gt; struct ClientTraits&lt;WKContextClientBase&gt; {
</span><del>-    typedef std::tuple&lt;WKContextClientV0, WKContextClientV1&gt; Versions;
</del><ins>+    typedef std::tuple&lt;WKContextClientV0, WKContextClientV1, WKContextClientV2&gt; Versions;
</ins><span class="cx"> };
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -47,6 +47,7 @@
</span><span class="cx"> public:
</span><span class="cx">     void plugInAutoStartOriginHashesChanged(WebProcessPool*);
</span><span class="cx">     void networkProcessDidCrash(WebProcessPool*);
</span><ins>+    void databaseProcessDidCrash(WebProcessPool*);
</ins><span class="cx">     void plugInInformationBecameAvailable(WebProcessPool*, API::Array*);
</span><span class="cx">     PassRefPtr&lt;API::Data&gt; copyWebCryptoMasterKey(WebProcessPool*);
</span><span class="cx"> };
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessWebProcessPoolcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/WebProcessPool.cpp (196820 => 196821)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/WebProcessPool.cpp        2016-02-19 16:49:28 UTC (rev 196820)
+++ trunk/Source/WebKit2/UIProcess/WebProcessPool.cpp        2016-02-19 17:35:52 UTC (rev 196821)
</span><span class="lines">@@ -451,6 +451,7 @@
</span><span class="cx">     for (auto&amp; supplement : m_supplements)
</span><span class="cx">         supplement.value-&gt;processDidClose(databaseProcessProxy);
</span><span class="cx"> 
</span><ins>+    m_client.databaseProcessDidCrash(this);
</ins><span class="cx">     m_databaseProcess = nullptr;
</span><span class="cx"> }
</span><span class="cx"> #endif
</span><span class="lines">@@ -838,6 +839,18 @@
</span><span class="cx">     return m_networkProcess-&gt;processIdentifier();
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+pid_t WebProcessPool::databaseProcessIdentifier()
+{
+#if ENABLE(DATABASE_PROCESS)
+    if (!m_databaseProcess)
+        return 0;
+
+    return m_databaseProcess-&gt;processIdentifier();
+#else
+    return 0;
+#endif
+}
+
</ins><span class="cx"> void WebProcessPool::setAlwaysUsesComplexTextCodePath(bool alwaysUseComplexText)
</span><span class="cx"> {
</span><span class="cx">     m_alwaysUsesComplexTextCodePath = alwaysUseComplexText;
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessWebProcessPoolh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/WebProcessPool.h (196820 => 196821)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/WebProcessPool.h        2016-02-19 16:49:28 UTC (rev 196820)
+++ trunk/Source/WebKit2/UIProcess/WebProcessPool.h        2016-02-19 17:35:52 UTC (rev 196821)
</span><span class="lines">@@ -187,6 +187,7 @@
</span><span class="cx"> #endif
</span><span class="cx"> 
</span><span class="cx">     pid_t networkProcessIdentifier();
</span><ins>+    pid_t databaseProcessIdentifier();
</ins><span class="cx"> 
</span><span class="cx">     void setAlwaysUsesComplexTextCodePath(bool);
</span><span class="cx">     void setShouldUseFontSmoothing(bool);
</span></span></pre></div>
<a id="trunkToolsChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Tools/ChangeLog (196820 => 196821)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/ChangeLog        2016-02-19 16:49:28 UTC (rev 196820)
+++ trunk/Tools/ChangeLog        2016-02-19 17:35:52 UTC (rev 196821)
</span><span class="lines">@@ -1,3 +1,16 @@
</span><ins>+2016-02-19  Brady Eidson  &lt;beidson@apple.com&gt;
+
+        Add &quot;databaseProcessDidCrash&quot; to the WKContextClient; Adopt it in WKTR.
+        https://bugs.webkit.org/show_bug.cgi?id=154428
+
+        Reviewed by Jer Noble.
+
+        * WebKitTestRunner/TestController.cpp:
+        (WTR::TestController::generatePageConfiguration):
+        (WTR::TestController::databaseProcessName):
+        (WTR::TestController::databaseProcessDidCrash):
+        * WebKitTestRunner/TestController.h:
+
</ins><span class="cx"> 2016-02-18  Philippe Normand  &lt;pnormand@igalia.com&gt;
</span><span class="cx"> 
</span><span class="cx">         [GStreamer] Bump internal jhbuild versions to 1.6.3
</span></span></pre></div>
<a id="trunkToolsWebKitTestRunnerTestControllercpp"></a>
<div class="modfile"><h4>Modified: trunk/Tools/WebKitTestRunner/TestController.cpp (196820 => 196821)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/WebKitTestRunner/TestController.cpp        2016-02-19 16:49:28 UTC (rev 196820)
+++ trunk/Tools/WebKitTestRunner/TestController.cpp        2016-02-19 17:35:52 UTC (rev 196821)
</span><span class="lines">@@ -433,12 +433,13 @@
</span><span class="cx">     };
</span><span class="cx">     WKContextSetInjectedBundleClient(m_context.get(), &amp;injectedBundleClient.base);
</span><span class="cx"> 
</span><del>-    WKContextClientV1 contextClient = {
-        { 1, this },
</del><ins>+    WKContextClientV2 contextClient = {
+        { 2, this },
</ins><span class="cx">         0, // plugInAutoStartOriginHashesChanged
</span><span class="cx">         networkProcessDidCrash,
</span><span class="cx">         0, // plugInInformationBecameAvailable
</span><span class="cx">         0, // copyWebCryptoMasterKey
</span><ins>+        databaseProcessDidCrash,
</ins><span class="cx">     };
</span><span class="cx">     WKContextSetClient(m_context.get(), &amp;contextClient.base);
</span><span class="cx"> 
</span><span class="lines">@@ -821,6 +822,16 @@
</span><span class="cx"> #endif
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+const char* TestController::databaseProcessName()
+{
+    // FIXME: Find a way to not hardcode the process name.
+#if PLATFORM(COCOA)
+    return &quot;com.apple.WebKit.Databases.Development&quot;;
+#else
+    return &quot;DatabaseProcess&quot;;
+#endif
+}
+
</ins><span class="cx"> static std::string testPath(WKURLRef url)
</span><span class="cx"> {
</span><span class="cx">     auto scheme = adoptWK(WKURLCopyScheme(url));
</span><span class="lines">@@ -1138,6 +1149,11 @@
</span><span class="cx">     static_cast&lt;TestController*&gt;(const_cast&lt;void*&gt;(clientInfo))-&gt;networkProcessDidCrash();
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+void TestController::databaseProcessDidCrash(WKContextRef context, const void *clientInfo)
+{
+    static_cast&lt;TestController*&gt;(const_cast&lt;void*&gt;(clientInfo))-&gt;databaseProcessDidCrash();
+}
+
</ins><span class="cx"> void TestController::didReceiveKeyDownMessageFromInjectedBundle(WKDictionaryRef messageBodyDictionary, bool synchronous)
</span><span class="cx"> {
</span><span class="cx">     WKRetainPtr&lt;WKStringRef&gt; keyKey = adoptWK(WKStringCreateWithUTF8CString(&quot;Key&quot;));
</span><span class="lines">@@ -1445,6 +1461,17 @@
</span><span class="cx">     exit(1);
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+void TestController::databaseProcessDidCrash()
+{
+#if PLATFORM(COCOA)
+    pid_t pid = WKContextGetDatabaseProcessIdentifier(m_context.get());
+    fprintf(stderr, &quot;#CRASHED - %s (pid %ld)\n&quot;, databaseProcessName(), static_cast&lt;long&gt;(pid));
+#else
+    fprintf(stderr, &quot;#CRASHED - %s\n&quot;, databaseProcessName());
+#endif
+    exit(1);
+}
+
</ins><span class="cx"> // WKPageNavigationClient
</span><span class="cx"> 
</span><span class="cx"> void TestController::didCommitNavigation(WKPageRef page, WKNavigationRef navigation, WKTypeRef, const void* clientInfo)
</span></span></pre></div>
<a id="trunkToolsWebKitTestRunnerTestControllerh"></a>
<div class="modfile"><h4>Modified: trunk/Tools/WebKitTestRunner/TestController.h (196820 => 196821)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/WebKitTestRunner/TestController.h        2016-02-19 16:49:28 UTC (rev 196820)
+++ trunk/Tools/WebKitTestRunner/TestController.h        2016-02-19 17:35:52 UTC (rev 196821)
</span><span class="lines">@@ -114,6 +114,7 @@
</span><span class="cx"> 
</span><span class="cx">     static const char* webProcessName();
</span><span class="cx">     static const char* networkProcessName();
</span><ins>+    static const char* databaseProcessName();
</ins><span class="cx"> 
</span><span class="cx">     WorkQueueManager&amp; workQueueManager() { return m_workQueueManager; }
</span><span class="cx"> 
</span><span class="lines">@@ -185,6 +186,8 @@
</span><span class="cx">     // WKContextClient
</span><span class="cx">     static void networkProcessDidCrash(WKContextRef, const void*);
</span><span class="cx">     void networkProcessDidCrash();
</span><ins>+    static void databaseProcessDidCrash(WKContextRef, const void*);
+    void databaseProcessDidCrash();
</ins><span class="cx"> 
</span><span class="cx">     // WKPageNavigationClient
</span><span class="cx">     static void didCommitNavigation(WKPageRef, WKNavigationRef, WKTypeRef userData, const void*);
</span></span></pre>
</div>
</div>

</body>
</html>