Changeset 230481 in webkit


Ignore:
Timestamp:
Apr 10, 2018 9:26:42 AM (6 years ago)
Author:
magomez@igalia.com
Message:

[GTK][WPE] Race condition when destroying webprocesses
https://bugs.webkit.org/show_bug.cgi?id=184445

Reviewed by Carlos Garcia Campos.

Ensure that the WebProcess is properly closing its pages when it's exiting because
the UIProcess has invalidated the IPC connection.

  • WebProcess/WebProcess.cpp:

(WebKit::WebProcess::didClose):

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r230470 r230481  
     12018-04-10  Miguel Gomez  <magomez@igalia.com>
     2
     3        [GTK][WPE] Race condition when destroying webprocesses
     4        https://bugs.webkit.org/show_bug.cgi?id=184445
     5
     6        Reviewed by Carlos Garcia Campos.
     7
     8        Ensure that the WebProcess is properly closing its pages when it's exiting because
     9        the UIProcess has invalidated the IPC connection.
     10
     11        * WebProcess/WebProcess.cpp:
     12        (WebKit::WebProcess::didClose):
     13
    1142018-04-09  Wenson Hsieh  <wenson_hsieh@apple.com>
    215
  • trunk/Source/WebKit/WebProcess/WebProcess.cpp

    r230454 r230481  
    687687void WebProcess::didClose(IPC::Connection&)
    688688{
    689 #ifndef NDEBUG
     689#if !defined(NDEBUG) || PLATFORM(GTK) || PLATFORM(WPE)
    690690    for (auto& page : copyToVector(m_pageMap.values()))
    691691        page->close();
    692 
     692#endif
     693
     694#ifndef NDEBUG
    693695    GCController::singleton().garbageCollectSoon();
    694696    FontCache::singleton().invalidate();
Note: See TracChangeset for help on using the changeset viewer.