This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse the repository at this point in the history
Service worker registration soft updates happen too frequently
https://bugs.webkit.org/show_bug.cgi?id=182296 <rdar://problem/37031862> Reviewed by Youenn Fablet. Move code that updates the registration's last update check time from after the script bytecheck to before, as per: - https://w3c.github.io/ServiceWorker/#update (step 7.19) This way, the last update check time gets updated even if the newly fetched script is identical to the previous one, which is the common case. * workers/service/server/SWServer.cpp: (WebCore::SWServer::updateWorker): * workers/service/server/SWServerJobQueue.cpp: (WebCore::SWServerJobQueue::scriptFetchFinished): Canonical link: https://commits.webkit.org/198099@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@227796 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing 3 changed files with 22 additions and 1 deletion.