Worker: Fix DCHECK failures during WorkerFetchContext creation
This CL removes a thread check in WebDocumentSubresourceFilterImpl::BuilderImpl::Build() that is called during WorkerFetchContext creation. When the check was added, Build() was supposed to be called from the worker thread. However, PaintWorklet, which is a kind of workers but runs on the main thread, was implemented and broke the assumption. It should be safe to run it on the main thread, so this CL removes the check. This CL also adds tests for subresource filter for worklets to check the change. Bug: 887269, 1011208 Change-Id: Ieaa0ed4adb80523ec72af5916781c8593de28c85 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1242730Reviewed-by:Tsuyoshi Horo <horo@chromium.org> Reviewed-by:
Charlie Harrison <csharrison@chromium.org> Reviewed-by:
Hiroshige Hayashizaki <hiroshige@chromium.org> Commit-Queue: Hiroshige Hayashizaki <hiroshige@chromium.org> Cr-Commit-Position: refs/heads/master@{#706596}
Showing
Please register or sign in to comment