Ensure that we only dispatch ProcessAssertionClient::assertionWillExpireImminently() to clients that have not been removed from the list of ProcessAssertionClient clients owned by WKProcessAssertionBackgroundTaskManager.
Created attachment 252880 [details] Patch
Created attachment 252901 [details] Patch Remove inadvertently added duplicate call to ProcessAssertionClient::assertionWillExpireImminently().
Comment on attachment 252901 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=252901&action=review > Source/WebKit2/UIProcess/ios/ProcessAssertionIOS.mm:114 > + if (_clients.contains(client)) This will probably work in practice but itβs incorrect. The old client object might have been deallocated and a new client object might have been defined at the same address.
<rdar://problem/27219361>