| Summary: | [iOS] ProcessThrottler fails to re-take ProcessAssertion if the previous one was invalidated | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Chris Dumez <cdumez> | ||||
| Component: | WebKit2 | Assignee: | Chris Dumez <cdumez> | ||||
| Status: | RESOLVED FIXED | ||||||
| Severity: | Normal | CC: | achristensen, bfulgham, eric.carlson, ggaren, jer.noble, kevin.godell, webkit-bug-importer | ||||
| Priority: | P2 | Keywords: | InRadar | ||||
| Version: | WebKit Nightly Build | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Attachments: |
|
||||||
|
Description
Chris Dumez
2020-05-01 09:53:57 PDT
Created attachment 398194 [details]
Patch
Comment on attachment 398194 [details] Patch Clearing flags on attachment: 398194 Committed r261034: <https://trac.webkit.org/changeset/261034> All reviewed patches have been landed. Closing bug. Comment on attachment 398194 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=398194&action=review > Source/WebKit/ChangeLog:15 > + To address the issue, add a isValid() method to ProcessAssertion() and check it in "add an isValid() ..." > Source/WebKit/UIProcess/ios/ProcessAssertionIOS.mm:462 > + bool shouldHoldBackgroundTask = isValid() && type() != ProcessAssertionType::Suspended; It seems like this might be the only use of validity(). Should it be removed? Comment on attachment 398194 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=398194&action=review > Source/WebKit/UIProcess/ProcessAssertion.h:-77 > - Validity validity() const { return m_validity; } See removal here. >> Source/WebKit/UIProcess/ios/ProcessAssertionIOS.mm:462 >> + bool shouldHoldBackgroundTask = isValid() && type() != ProcessAssertionType::Suspended; > > It seems like this might be the only use of validity(). Should it be removed? It was removed. |