WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
144880
[iOS] Dispatch ProcessAssertionClient::assertionWillExpireImminently() to valid clients
https://bugs.webkit.org/show_bug.cgi?id=144880
Summary
[iOS] Dispatch ProcessAssertionClient::assertionWillExpireImminently() to val...
Daniel Bates
Reported
2015-05-11 11:57:02 PDT
Ensure that we only dispatch ProcessAssertionClient::assertionWillExpireImminently() to clients that have not been removed from the list of ProcessAssertionClient clients owned by WKProcessAssertionBackgroundTaskManager.
Attachments
Patch
(2.18 KB, patch)
2015-05-11 12:01 PDT
,
Daniel Bates
no flags
Details
Formatted Diff
Diff
Patch
(2.06 KB, patch)
2015-05-11 15:58 PDT
,
Daniel Bates
darin
: review-
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Daniel Bates
Comment 1
2015-05-11 12:01:20 PDT
Created
attachment 252880
[details]
Patch
Daniel Bates
Comment 2
2015-05-11 15:58:13 PDT
Created
attachment 252901
[details]
Patch Remove inadvertently added duplicate call to ProcessAssertionClient::assertionWillExpireImminently().
Darin Adler
Comment 3
2015-05-11 17:24:46 PDT
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.
Daniel Bates
Comment 4
2016-07-08 17:55:03 PDT
<
rdar://problem/27219361
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug