IsolatedWorldCSP: Remove BaseFetchContext::ShouldBypassMainWorldCSP.
https://chromium-review.googlesource.com/c/chromium/src/+/2354566 plumbed DOMWrapperWorld for all resource requests. Hence we no longer need to look at the current world to see if the main world CSP should be bypassed in CSP checks in fetch context. Instead we can rely on the CSP associated with the plumbed DOMWrapperWorld. This is more accurate as it prevents incorrectly bypassing or not bypassing the CSP when BaseFetchContext::ShouldBypassMainWorldCSP is called asynchronously from the point the request is initiated. BUG=1099975 Change-Id: I6cb782dab25e3b418f5b9be79578b3b7d0e50b06 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2317030Reviewed-by:Yutaka Hirano <yhirano@chromium.org> Reviewed-by:
Dominic Farolino <dom@chromium.org> Commit-Queue: Karan Bhatia <karandeepb@chromium.org> Cr-Commit-Position: refs/heads/master@{#798240}
Showing
Please register or sign in to comment