Bug 236271 - [iOS] Take adequate process assertion for the SharedWorker process
Summary: [iOS] Take adequate process assertion for the SharedWorker process
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
Depends on:
Blocks: 230382 236396
  Show dependency treegraph
 
Reported: 2022-02-07 16:30 PST by Chris Dumez
Modified: 2022-02-09 16:47 PST (History)
8 users (show)

See Also:


Attachments
Patch (68.97 KB, patch)
2022-02-08 10:49 PST, Chris Dumez
no flags Details | Formatted Diff | Diff
Patch (69.26 KB, patch)
2022-02-08 11:00 PST, Chris Dumez
no flags Details | Formatted Diff | Diff
Patch (76.38 KB, patch)
2022-02-08 16:51 PST, Chris Dumez
no flags Details | Formatted Diff | Diff
Patch (76.37 KB, patch)
2022-02-09 07:12 PST, Chris Dumez
no flags Details | Formatted Diff | Diff
Patch (76.34 KB, patch)
2022-02-09 07:19 PST, Chris Dumez
no flags Details | Formatted Diff | Diff
Patch (76.53 KB, patch)
2022-02-09 10:43 PST, Chris Dumez
no flags Details | Formatted Diff | Diff
Patch (76.50 KB, patch)
2022-02-09 10:51 PST, 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 2022-02-07 16:30:16 PST
Take adequate process assertion for the SharedWorker process based on which processes rely on it.
Comment 1 Chris Dumez 2022-02-08 10:49:23 PST
Created attachment 451274 [details]
Patch
Comment 2 Chris Dumez 2022-02-08 11:00:42 PST
Created attachment 451277 [details]
Patch
Comment 3 Radar WebKit Bug Importer 2022-02-08 11:32:56 PST
<rdar://problem/88642879>
Comment 4 Chris Dumez 2022-02-08 16:51:40 PST
Created attachment 451325 [details]
Patch
Comment 5 Chris Dumez 2022-02-09 07:12:42 PST
Created attachment 451369 [details]
Patch
Comment 6 Chris Dumez 2022-02-09 07:19:36 PST
Created attachment 451372 [details]
Patch
Comment 7 Chris Dumez 2022-02-09 10:43:08 PST
Created attachment 451403 [details]
Patch
Comment 8 Chris Dumez 2022-02-09 10:51:33 PST
Created attachment 451406 [details]
Patch
Comment 9 Brent Fulgham 2022-02-09 11:13:22 PST
Comment on attachment 451406 [details]
Patch

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

> Source/WebKit/NetworkProcess/SharedWorker/WebSharedWorkerServer.cpp:76
> +            auto* contextConnection = sharedWorker->contextConnection();

Did SharedWorker always have the correct contextConnection, and we've been wasting time looking it up?
Comment 10 Chris Dumez 2022-02-09 11:19:13 PST
Comment on attachment 451406 [details]
Patch

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

>> Source/WebKit/NetworkProcess/SharedWorker/WebSharedWorkerServer.cpp:76
>> +            auto* contextConnection = sharedWorker->contextConnection();
> 
> Did SharedWorker always have the correct contextConnection, and we've been wasting time looking it up?

No, technically this ends up being equivalent. I just think this looks nicer.
Comment 11 EWS 2022-02-09 16:47:52 PST
Committed r289508 (247042@main): <https://commits.webkit.org/247042@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 451406 [details].