Changeset 245297 in webkit
- Timestamp:
- May 14, 2019 12:32:17 PM (5 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r245294 r245297 1 2019-05-14 Chris Dumez <cdumez@apple.com> 2 3 The network process tries to take a process assertion when NetworkProcess::processWillSuspendImminently() is called 4 https://bugs.webkit.org/show_bug.cgi?id=197888 5 6 Reviewed by Geoffrey Garen. 7 8 When actualPrepareToSuspend() in the Network process is called set the 'IsSuspended' flag on the SQLite database tracker and unset 9 the flag when the process resume. This is consistent with what we already do in the WebProcess and makes sure that 10 the network process does not try and take on a new assertion due to locked files when getting notified it is about to get 11 suspended. 12 13 * NetworkProcess/NetworkProcess.cpp: 14 (WebKit::NetworkProcess::actualPrepareToSuspend): 15 (WebKit::NetworkProcess::processWillSuspendImminently): 16 (WebKit::NetworkProcess::resume): 17 1 18 2019-05-14 Chris Dumez <cdumez@apple.com> 2 19 -
trunk/Source/WebKit/NetworkProcess/NetworkProcess.cpp
r245149 r245297 1923 1923 void NetworkProcess::actualPrepareToSuspend(ShouldAcknowledgeWhenReadyToSuspend shouldAcknowledgeWhenReadyToSuspend) 1924 1924 { 1925 #if PLATFORM(IOS_FAMILY) 1926 m_webSQLiteDatabaseTracker.setIsSuspended(true); 1927 #endif 1928 1925 1929 lowMemoryHandler(Critical::Yes); 1926 1930 … … 1948 1952 void NetworkProcess::processWillSuspendImminently(CompletionHandler<void(bool)>&& completionHandler) 1949 1953 { 1954 RELEASE_LOG(ProcessSuspension, "%p - NetworkProcess::processWillSuspendImminently()", this); 1950 1955 #if PLATFORM(IOS_FAMILY) && ENABLE(INDEXED_DATABASE) 1951 1956 for (auto& server : m_idbServers.values()) … … 1995 2000 void NetworkProcess::resume() 1996 2001 { 2002 #if PLATFORM(IOS_FAMILY) 2003 m_webSQLiteDatabaseTracker.setIsSuspended(false); 2004 #endif 2005 1997 2006 platformProcessDidResume(); 1998 2007 for (auto& connection : m_webProcessConnections)
Note: See TracChangeset
for help on using the changeset viewer.