⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 245996 in webkit


Ignore:
Timestamp:
May 31, 2019, 4:24:59 PM (7 years ago)
Author:
Alan Coon
Message:

Revert r245899. rdar://problem/51316898

Location:
branches/safari-608.1.27-branch/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/safari-608.1.27-branch/Source/WebKit/ChangeLog

    r245985 r245996  
     12019-05-31  Alan Coon  <alancoon@apple.com>
     2
     3        Revert r245899. rdar://problem/51316898
     4
    152019-05-31  Kocsen Chung  <kocsen_chung@apple.com>
    26
  • branches/safari-608.1.27-branch/Source/WebKit/UIProcess/ios/ProcessAssertionIOS.mm

    r245899 r245996  
    151151        RELEASE_LOG(ProcessSuspension, "%p - WKProcessAssertionBackgroundTaskManager - beginBackgroundTaskWithName", self);
    152152        _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());
    164154            // The expiration handler gets called on a non-main thread when the underlying assertion could not be taken (rdar://problem/27278419).
    165155            if (RunLoop::isMain())
Note: See TracChangeset for help on using the changeset viewer.