IsolatedWorldCSP: Plumb DOMWrapperWorld for ResourceLoaderOptions in
core/script and platform/loader/fetch. This is part of the work to enforce isolated world CSP for resource requests when the feature IsolatedWorldCSP is enabled and to correctly bypass the main world CSP otherwise. Note that it's possible that the plumbed DOMWrapperWorld might not always be completely correct (for example if it is plumbed asynchronously from the point which caused the resource request). However this is still better than the status quo where the CSP checks for isolated worlds are bypassed based on calling FrameFetchContext::ShouldBypassMainWorldCSP() which is often incorrect especially for redirects since we might be in a different different world by then. Further CLs will ensure the DOMWrapperWorld is plumbed for all ResourceLoaderOptions object. BUG=1099975 Change-Id: Idc902e8c6c2c8ee5e5a97ca58189a8b9476eab4c Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2341413Reviewed-by:Yutaka Hirano <yhirano@chromium.org> Commit-Queue: Karan Bhatia <karandeepb@chromium.org> Cr-Commit-Position: refs/heads/master@{#797192}
Showing
Please register or sign in to comment