Summary: | REGRESSION(r233381): Double WebResourceLoadStatisticsStore destructor invocation | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Zan Dobersek <zan> | ||||||
Component: | WebKit2 | Assignee: | Zan Dobersek <zan> | ||||||
Status: | RESOLVED FIXED | ||||||||
Severity: | Normal | CC: | bfulgham, cdumez, cgarcia, commit-queue, mcatanzaro, webkit-bug-importer, wilander | ||||||
Priority: | P2 | Keywords: | InRadar | ||||||
Version: | WebKit Nightly Build | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
Bug Depends on: | |||||||||
Bug Blocks: | 187200 | ||||||||
Attachments: |
|
Description
Zan Dobersek
2018-07-02 07:24:10 PDT
Created attachment 344101 [details]
Patch
Comment on attachment 344101 [details]
Patch
Please do not duplicate this code, just update the existing function to stop using postTask() and dispatch to the work queue instead.
(In reply to Chris Dumez from comment #2) > Comment on attachment 344101 [details] > Patch > > Please do not duplicate this code, just update the existing function to stop > using postTask() and dispatch to the work queue instead. applicationWillTerminate() still calls flushAndDestroyPersistentStore(). Is it fine to assume that the WebResourceLoadStatisticsStore reference through which applicationWillTerminate() will survive for the duration of this dispatch? Created attachment 344104 [details]
Patch
(In reply to Zan Dobersek from comment #3) > (In reply to Chris Dumez from comment #2) > > Comment on attachment 344101 [details] > > Patch > > > > Please do not duplicate this code, just update the existing function to stop > > using postTask() and dispatch to the work queue instead. > > applicationWillTerminate() still calls flushAndDestroyPersistentStore(). Is > it fine to assume that the WebResourceLoadStatisticsStore reference through > which applicationWillTerminate() will survive for the duration of this > dispatch? I guess it should be the caller's responsibility to ensure object's validity for the duration of the method call they invoked. Comment on attachment 344104 [details]
Patch
r=me, thanks for fixing.
Comment on attachment 344104 [details] Patch Clearing flags on attachment: 344104 Committed r233423: <https://trac.webkit.org/changeset/233423> All reviewed patches have been landed. Closing bug. |