Changeset 245996 in webkit
- Timestamp:
- May 31, 2019, 4:24:59 PM (7 years ago)
- Location:
- branches/safari-608.1.27-branch/Source/WebKit
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
UIProcess/ios/ProcessAssertionIOS.mm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/safari-608.1.27-branch/Source/WebKit/ChangeLog
r245985 r245996 1 2019-05-31 Alan Coon <alancoon@apple.com> 2 3 Revert r245899. rdar://problem/51316898 4 1 5 2019-05-31 Kocsen Chung <kocsen_chung@apple.com> 2 6 -
branches/safari-608.1.27-branch/Source/WebKit/UIProcess/ios/ProcessAssertionIOS.mm
r245899 r245996 151 151 RELEASE_LOG(ProcessSuspension, "%p - WKProcessAssertionBackgroundTaskManager - beginBackgroundTaskWithName", self); 152 152 _backgroundTask = [[UIApplication sharedApplication] beginBackgroundTaskWithName:@"com.apple.WebKit.ProcessAssertion" expirationHandler:^{ 153 RELEASE_LOG_ERROR(ProcessSuspension, "Background task expired while holding WebKit ProcessAssertion (isMainThread? %d, applicationIsBackgrounded? %d).", RunLoop::isMain(), _applicationIsBackgrounded); 154 if (!_applicationIsBackgrounded) { 155 // We've received the invalidation warning after the app has become foreground again. In this case, we should not warn clients of imminent suspension. 156 // To be safe (avoid potential killing), we end the task right away and call _updateBackgroundTask asynchronously to start a new task if necessary. 157 [self _cancelPendingReleaseTask]; 158 [self _releaseBackgroundTask]; 159 dispatch_async(dispatch_get_main_queue(), ^{ 160 [self _updateBackgroundTask]; 161 }); 162 return; 163 } 153 RELEASE_LOG_ERROR(ProcessSuspension, "Background task expired while holding WebKit ProcessAssertion (isMainThread? %d).", RunLoop::isMain()); 164 154 // The expiration handler gets called on a non-main thread when the underlying assertion could not be taken (rdar://problem/27278419). 165 155 if (RunLoop::isMain())
Note:
See TracChangeset
for help on using the changeset viewer.