Bug 235086

Summary: WebPageProxy destruction should not launch a network process
Product: WebKit Reporter: Geoffrey Garen <ggaren>
Component: New BugsAssignee: Geoffrey Garen <ggaren>
Status: RESOLVED FIXED    
Severity: Normal CC: achristensen, sihui_liu, simon.fraser, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch
none
Patch none

Description Geoffrey Garen 2022-01-11 15:18:42 PST
WebPageProxy destruction should not launch a network process
Comment 1 Geoffrey Garen 2022-01-11 15:23:25 PST
Created attachment 448883 [details]
Patch
Comment 2 Alex Christensen 2022-01-11 16:05:54 PST
Comment on attachment 448883 [details]
Patch

This is not a bad idea.  It can be tested by extending the NetworkProcess.LaunchOnlyWhenNecessary API test.
Comment 3 Geoffrey Garen 2022-01-11 16:31:45 PST
Created attachment 448890 [details]
Patch
Comment 4 Alex Christensen 2022-01-11 16:32:52 PST
Comment on attachment 448890 [details]
Patch

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

> Tools/TestWebKitAPI/Tests/WebKitCocoa/NetworkProcess.mm:95
> +    webView = nullptr;

Does this destroy the WebPageProxy?  I would expect an @autoreleasepool somewhere to prevent any autoreleased objects from keeping it alive.
Comment 5 Geoffrey Garen 2022-01-11 16:53:12 PST
Created attachment 448892 [details]
Patch
Comment 6 EWS 2022-01-11 20:02:40 PST
Committed r287907 (245940@main): <https://commits.webkit.org/245940@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 448892 [details].
Comment 7 Radar WebKit Bug Importer 2022-01-11 20:03:16 PST
<rdar://problem/87433821>