Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Regression(r279601) ProcessAssertion may get destroyed on a backgroun…
…d thread https://bugs.webkit.org/show_bug.cgi?id=227875 <rdar://76972252> Reviewed by Geoffrey Garen. r279601 added an internal WorkQueue to ProcessAssertion, so that we could acquire the RunningBoard assertion asynchronously on the background queue. When dispatching to the background queue, we capture |protectedThis|, which means that ProcessAssertion may now get destroyed on the background queue. To address the isuse, we now make sure to dispatch |protectedThis| back to the main thread in acquireAsync(). * UIProcess/ios/ProcessAssertionIOS.mm: (WebKit::ProcessAssertion::acquireAsync): Canonical link: https://commits.webkit.org/239630@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@279877 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information