Changeset 150691 in webkit


Ignore:
Timestamp:
May 25, 2013 2:34:26 PM (11 years ago)
Author:
akling@apple.com
Message:

REGRESSION: WebProcess is terminated when all Safari windows are closed.
<rdar://problem/13990901>
<http://webkit.org/b/116766>

Reviewed by Alexey Proskuryakov.

When closing the last page, only disconnect the web process if we're using a network process.
Otherwise there might be session state in the web process getting lost.

  • UIProcess/WebProcessProxy.cpp:

(WebKit::WebProcessProxy::removeWebPage):

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r150689 r150691  
     12013-05-25  Andreas Kling  <akling@apple.com>
     2
     3        REGRESSION: WebProcess is terminated when all Safari windows are closed.
     4        <rdar://problem/13990901>
     5        <http://webkit.org/b/116766>
     6
     7        Reviewed by Alexey Proskuryakov.
     8
     9        When closing the last page, only disconnect the web process if we're using a network process.
     10        Otherwise there might be session state in the web process getting lost.
     11
     12        * UIProcess/WebProcessProxy.cpp:
     13        (WebKit::WebProcessProxy::removeWebPage):
     14
    1152013-05-25  Santosh Mahto  <santosh.ma@samsung.com>
    216
  • trunk/Source/WebKit2/UIProcess/WebProcessProxy.cpp

    r150500 r150691  
    202202
    203203    // If this was the last WebPage open in that web process, and we have no other reason to keep it alive, let it go.
    204     if (canTerminateChildProcess()) {
     204    // We only allow this when using a network process, as otherwise the WebProcess needs to preserve its session state.
     205    if (m_context->usesNetworkProcess() && canTerminateChildProcess()) {
    205206        abortProcessLaunchIfNeeded();
    206207        disconnect();
Note: See TracChangeset for help on using the changeset viewer.