12011-04-14 Jessie Berlin <jberlin@apple.com>
2
3 Reviewed by NOBODY (OOPS!).
4
5 WebKit2: Need a way to keep the WebProcess alive for testing purposes.
6 https://bugs.webkit.org/show_bug.cgi?id=58592
7
8 * UIProcess/API/C/WKContext.cpp:
9 (WKContextSetWebProcessCanTerminateEarly):
10 Call through to the WebContext.
11 * UIProcess/API/C/WKContextPrivate.h:
12
13 * UIProcess/WebContext.cpp:
14 (WebKit::WebContext::WebContext):
15 Initialize m_webProcessCanTerminateEarly to true.
16 (WebKit::WebContext::setWebProcessCanTerminateEarly):
17 If the web process is allowed to terminate early and shouldTerminate returns true, tell the
18 WebProcess to terminate.
19 (WebKit::WebContext::shouldTerminate):
20 Return false if the web process is not allowed to terminate early.
21 * UIProcess/WebContext.h:
22