[Sheriff] Revert "AppCache: Reduce dependencies on DocumentLoader from...
[Sheriff] Revert "AppCache: Reduce dependencies on DocumentLoader from ApplicationCacheHost for shared workers (4)" This reverts commit 1ac215fe. Reason for revert: Breaks ChromeDoNotTrackTest.FetchFromSharedWorker on Linux MSan, see https://crbug.com/988997 Original change's description: > AppCache: Reduce dependencies on DocumentLoader from ApplicationCacheHost for shared workers (4) > > In the current implementation, WorkerShadowPage provides DocumentLoader to > ApplicationCacheHost for shared workers. This blocks WorkerShadowPage removal > (see the issue). To unblock it, this series of CLs reduce dependencies on > DocumentLoader from ApplicationCacheHost for shared workers. > > This CL... > > - moves WillStartLoading(), WillStartLoadingMainResource(), > IsApplicationCacheEnabled(), and |document_loader_| from ApplicationCacheHost > to ApplicationCacheHostForFrame. > - introduces WebLocalFrameClient::GetAppCacheHostIDForSharedWorker() to take an > appcache host ID from WorkerShadowPage with bypassing DocumentLoader. This is > a stopgap implementation, and will be removed by follow-up CLs soon. > - makes ApplicationCacheHostForSharedWorker binds itself with the backend in the > constructor instead of WillStartLoadingMainResource() that is a part of the > lifecycle of DocumentLoader. > > The follow-up CLs will create ApplicationCacheHostForSharedWorker in > WebSharedWorkerImpl instead of DocumentLoader. That will completely remove > DocumentLoader association from ApplicationCacheHost for shared workers. > > Bug: 982996 > Change-Id: I5beedd7600291a6f4867d35505e658b7f7194fbd > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1722932 > Reviewed-by: Kentaro Hara <haraken@chromium.org> > Reviewed-by: Marijn Kruisselbrink <mek@chromium.org> > Commit-Queue: Hiroki Nakagawa <nhiroki@chromium.org> > Cr-Commit-Position: refs/heads/master@{#682075} TBR=mek@chromium.org,haraken@chromium.org,nhiroki@chromium.org Change-Id: Id8437f48e455cefaafa8c031d682a7abc4f8997e No-Presubmit: true No-Tree-Checks: true No-Try: true Bug: 982996, 988997 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1726033 Commit-Queue: Lutz Justen <ljusten@chromium.org> Reviewed-by:Lutz Justen <ljusten@chromium.org> Cr-Commit-Position: refs/heads/master@{#682278}
Showing
Please register or sign in to comment