Bug 248173 - Workers: Simplify early dedicated worker termination
Summary: Workers: Simplify early dedicated worker termination
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: Safari Technology Preview
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-11-21 05:53 PST by Ahmad Saleem
Modified: 2022-11-22 13:23 PST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ahmad Saleem 2022-11-21 05:53:03 PST
Hi Team,

While going through Blink commits, I found another simplification in workers termination, which can be brought to Webkit:

Blink Commit - https://src.chromium.org/viewvc/blink?view=revision&revision=180532

Although there is no test case to confirm whether Webkit suffer from some issue due to it or not but since it is just simplification, it seems to be safe. I can do draft PR and run via EWS to see if there is any issue across multiple platforms.

https://github.com/WebKit/WebKit/blob/a845b7e4ec0490d1d8f5d7e7f5ddf44fef0b6f17/Source/WebCore/workers/WorkerMessagingProxy.cpp#L330

^ Remove this bit from here and move it here:

https://github.com/WebKit/WebKit/blob/a845b7e4ec0490d1d8f5d7e7f5ddf44fef0b6f17/Source/WebCore/workers/WorkerMessagingProxy.cpp#LL122

Just wanted to raise bug.

Thanks!
Comment 1 EWS 2022-11-22 13:22:27 PST
Committed 256949@main (0987e578a6a8): <https://commits.webkit.org/256949@main>

Reviewed commits have been landed. Closing PR #6700 and removing active labels.
Comment 2 Radar WebKit Bug Importer 2022-11-22 13:23:17 PST
<rdar://problem/102612212>