RESOLVED FIXED 236629
Make sure there is a default Networking process to provide the Launch Services database
https://bugs.webkit.org/show_bug.cgi?id=236629
Summary Make sure there is a default Networking process to provide the Launch Service...
Per Arne Vollan
Reported 2022-02-14 19:19:09 PST
The WebContent processes relies on getting the Launch Services database from the Networking process. We should make sure there always is a Networking process to provide the database.
Attachments
Patch (1.51 KB, patch)
2022-02-14 19:25 PST, Per Arne Vollan
no flags
Patch (1.89 KB, patch)
2022-02-14 19:36 PST, Per Arne Vollan
no flags
Patch (1.52 KB, patch)
2022-02-14 19:37 PST, Per Arne Vollan
no flags
Patch (1.98 KB, patch)
2022-02-14 19:40 PST, Per Arne Vollan
no flags
Patch (574 bytes, patch)
2022-02-15 08:04 PST, Per Arne Vollan
no flags
Patch (658 bytes, patch)
2022-02-15 17:26 PST, Per Arne Vollan
no flags
Patch (3.05 KB, patch)
2022-02-15 19:29 PST, Per Arne Vollan
no flags
Patch (3.54 KB, patch)
2022-02-16 14:14 PST, Per Arne Vollan
no flags
Patch (3.56 KB, patch)
2022-02-17 06:46 PST, Per Arne Vollan
no flags
Per Arne Vollan
Comment 1 2022-02-14 19:25:52 PST
Per Arne Vollan
Comment 2 2022-02-14 19:36:24 PST
Per Arne Vollan
Comment 3 2022-02-14 19:37:20 PST
Per Arne Vollan
Comment 4 2022-02-14 19:40:16 PST
Per Arne Vollan
Comment 5 2022-02-15 08:04:27 PST
Radar WebKit Bug Importer
Comment 6 2022-02-15 16:21:11 PST
Per Arne Vollan
Comment 7 2022-02-15 17:26:23 PST
Per Arne Vollan
Comment 8 2022-02-15 19:29:15 PST
Chris Dumez
Comment 9 2022-02-15 19:41:41 PST
Comment on attachment 452124 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=452124&action=review > Tools/TestWebKitAPI/Tests/WebKitCocoa/NetworkProcess.mm:-155 > - while ([WKWebsiteDataStore _defaultNetworkProcessExists]) This seems like a bad regression. It is important for the network process to go away once it is no longer needed. Otherwise, any app that would use a WKWebView to display a simple help page once would carry an extra process and all its associated memory, forever. You are essentially disabling this important API test and I don’t think it is ok.
Per Arne Vollan
Comment 10 2022-02-16 08:27:26 PST
(In reply to Chris Dumez from comment #9) > Comment on attachment 452124 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=452124&action=review > > > Tools/TestWebKitAPI/Tests/WebKitCocoa/NetworkProcess.mm:-155 > > - while ([WKWebsiteDataStore _defaultNetworkProcessExists]) > > This seems like a bad regression. It is important for the network process to > go away once it is no longer needed. Otherwise, any app that would use a > WKWebView to display a simple help page once would carry an extra process > and all its associated memory, forever. > Will it go away, though? There will still be a reference to the NetworkProcessProxy from a Website data store, preventing the Network process form exiting, I believe. I have checked the test above in the debugger, and the Network process does not exit when spinning the run loop after the test (also without the code change in this patch). Or perhaps I am mistaken? Perhaps we should reset all references to the Network process proxy in the remaining Website data stores when the last Web process pool is deleted? I think that would make the Network process exit in the above test.
Per Arne Vollan
Comment 11 2022-02-16 14:14:37 PST
Per Arne Vollan
Comment 12 2022-02-17 06:46:32 PST
Brent Fulgham
Comment 13 2022-02-25 11:19:27 PST
Comment on attachment 452361 [details] Patch r=me
Per Arne Vollan
Comment 14 2022-02-25 11:21:53 PST
Comment on attachment 452361 [details] Patch Thanks for reviewing!
EWS
Comment 15 2022-02-25 12:10:11 PST
Committed r290521 (247804@main): <https://commits.webkit.org/247804@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 452361 [details].
Note You need to log in before you can comment on or make changes to this bug.