Bug 188241 - Make sure cookies get flushed to disk before exiting or suspending the network process
Summary: Make sure cookies get flushed to disk before exiting or suspending the networ...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit2 (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Chris Dumez
URL:
Keywords: InRadar
: 188236 (view as bug list)
Depends on:
Blocks: 177972
  Show dependency treegraph
 
Reported: 2018-08-01 15:20 PDT by Chris Dumez
Modified: 2018-08-01 16:45 PDT (History)
6 users (show)

See Also:


Attachments
Patch (8.62 KB, patch)
2018-08-01 15:24 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff
Patch (8.67 KB, patch)
2018-08-01 16:05 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Dumez 2018-08-01 15:20:31 PDT
Make sure cookies get flushed to disk before exiting or suspending the network process.
Comment 1 Chris Dumez 2018-08-01 15:24:55 PDT
Created attachment 346306 [details]
Patch
Comment 2 EWS Watchlist 2018-08-01 15:26:27 PDT
Attachment 346306 [details] did not pass style-queue:


ERROR: Source/WebKit/NetworkProcess/cocoa/NetworkProcessCocoa.mm:215:  Place brace on its own line for function definitions.  [whitespace/braces] [4]
Total errors found: 1 in 6 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 Chris Dumez 2018-08-01 15:48:55 PDT
<rdar://problem/42831831>
Comment 4 Chris Dumez 2018-08-01 15:55:45 PDT
Comment on attachment 346306 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=346306&action=review

> Source/WebKit/Shared/ChildProcess.cpp:72
> +    WorkQueue::create("com.apple.WebKit.ChildProcess.WatchDogQueue")->dispatchAfter(watchdogDelay, [] {

This is a partial rollout of https://trac.webkit.org/changeset/231348/webkit to give the Network process a chance to sync cookies before exit.
Comment 5 Geoffrey Garen 2018-08-01 16:03:34 PDT
r=me too
Comment 6 Chris Dumez 2018-08-01 16:03:58 PDT
*** Bug 188236 has been marked as a duplicate of this bug. ***
Comment 7 Chris Dumez 2018-08-01 16:05:51 PDT
Created attachment 346311 [details]
Patch
Comment 8 EWS Watchlist 2018-08-01 16:08:33 PDT
Attachment 346311 [details] did not pass style-queue:


ERROR: Source/WebKit/NetworkProcess/cocoa/NetworkProcessCocoa.mm:215:  Place brace on its own line for function definitions.  [whitespace/braces] [4]
Total errors found: 1 in 6 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 9 WebKit Commit Bot 2018-08-01 16:45:51 PDT
Comment on attachment 346311 [details]
Patch

Clearing flags on attachment: 346311

Committed r234486: <https://trac.webkit.org/changeset/234486>
Comment 10 WebKit Commit Bot 2018-08-01 16:45:52 PDT
All reviewed patches have been landed.  Closing bug.