RESOLVED FIXED 225096
SWContextManager::postMessageToServiceWorker should check for valid service worker
https://bugs.webkit.org/show_bug.cgi?id=225096
Summary SWContextManager::postMessageToServiceWorker should check for valid service w...
youenn fablet
Reported 2021-04-27 03:04:24 PDT
SWContextManager::postMessageToServiceWorker should check for valid service worker
Attachments
Patch (1.91 KB, patch)
2021-04-27 03:07 PDT, youenn fablet
no flags
youenn fablet
Comment 1 2021-04-27 03:04:34 PDT
youenn fablet
Comment 2 2021-04-27 03:07:28 PDT
Chris Dumez
Comment 3 2021-04-27 07:39:26 PDT
Comment on attachment 427131 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=427131&action=review > Source/WebCore/workers/service/context/SWContextManager.cpp:87 > + if (!serviceWorker) Should we also return early in the isTerminatingOrTerminated() case?
youenn fablet
Comment 4 2021-04-27 08:00:45 PDT
(In reply to Chris Dumez from comment #3) > Comment on attachment 427131 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=427131&action=review > > > Source/WebCore/workers/service/context/SWContextManager.cpp:87 > > + if (!serviceWorker) > > Should we also return early in the isTerminatingOrTerminated() case? We probably could since enqueuing the task will be useless work in that case. I went this way to align this message event to other events like install or activate.
Chris Dumez
Comment 5 2021-04-27 08:01:33 PDT
Comment on attachment 427131 [details] Patch Ok. If this is consistent with others, let's go this way.
EWS
Comment 6 2021-04-27 11:39:10 PDT
Committed r276649 (237076@main): <https://commits.webkit.org/237076@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 427131 [details].
Note You need to log in before you can comment on or make changes to this bug.