Bug 239657

Summary: service worker update should refresh imported scripts in addition to the main script
Product: WebKit Reporter: youenn fablet <youennf>
Component: Service WorkersAssignee: youenn fablet <youennf>
Status: RESOLVED FIXED    
Severity: Normal CC: cdumez, ews-watchlist, mkwst, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=243410
Attachments:
Description Flags
Patch
none
Patch
none
Patch
none
Patch none

youenn fablet
Reported 2022-04-22 09:41:13 PDT
service worker update should refresh imported scripts in addition to the main script
Attachments
Patch (26.51 KB, patch)
2022-04-22 10:09 PDT, youenn fablet
no flags
Patch (44.30 KB, patch)
2022-04-25 05:12 PDT, youenn fablet
no flags
Patch (44.28 KB, patch)
2022-04-25 05:38 PDT, youenn fablet
no flags
Patch (44.19 KB, patch)
2022-04-27 00:45 PDT, youenn fablet
no flags
youenn fablet
Comment 1 2022-04-22 10:09:36 PDT
youenn fablet
Comment 2 2022-04-25 05:12:56 PDT
youenn fablet
Comment 3 2022-04-25 05:38:17 PDT
Chris Dumez
Comment 4 2022-04-26 08:01:17 PDT
Comment on attachment 458263 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=458263&action=review r=me > Source/WebCore/workers/service/server/SWServer.cpp:567 > + m_scripts.append(std::make_pair(url, WTFMove(result.script))); Can probably just: m_scripts.append({ url, WTFMove(result.script) }); > Source/WebCore/workers/service/server/SWServerJobQueue.cpp:114 > + RELEASE_LOG(ServiceWorker, "%p - SWServerJobQueue::scriptFetchFinished, script, certificate and imported scripts are matching for registrationID=%llu", this, registration->identifier().toUInt64()); %llu -> PRIu64 > Source/WebCore/workers/service/server/SWServerJobQueue.cpp:135 > + RELEASE_LOG(ServiceWorker, "%p - SWServerJobQueue::importedScriptsFetchFinished, script, certificate and imported scripts are matching for registrationID=%llu", this, registration->identifier().toUInt64()); PRIu64
youenn fablet
Comment 5 2022-04-27 00:45:15 PDT
EWS
Comment 6 2022-04-27 06:13:37 PDT
Committed r293506 (250037@main): <https://commits.webkit.org/250037@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 458426 [details].
Radar WebKit Bug Importer
Comment 7 2022-04-27 06:14:15 PDT
Note You need to log in before you can comment on or make changes to this bug.