Move SubresourceIntegrity calls to Resource
This CL moves SubresourceIntegrity calls to Resource, just before CheckNotify(), where Resource::Data() is always available. This makes - SubresourceIntegrity always checked if integrity metadata is set, and - SubresourceIntegrity and ResourceIntegrityDisposition control not depend on ResourceClients (ClassicPendingScript and LinkStyle). This removes Resource::SetIntegrityDisposition(), and and unblocks https://chromium-review.googlesource.com/c/562859/. This CL also makes Resource cache SubresourceIntegrity::ReportInfo in Resource, and thus outputs SRI console error messages and update UseCounters for every classic script and stylesheet that shares a Resource, not only for the first use (Issue 585267). Bug: 746115, 701943, 585267, 653502 Change-Id: I03e7c22319980bd297cb5d9fb58589966a0b2f71 Reviewed-on: https://chromium-review.googlesource.com/576950Reviewed-by:Kouhei Ueno <kouhei@chromium.org> Reviewed-by:
Mike West <mkwst@chromium.org> Reviewed-by:
Daniel Vogelheim <vogelheim@chromium.org> Commit-Queue: Hiroshige Hayashizaki <hiroshige@chromium.org> Cr-Commit-Position: refs/heads/master@{#491526}
Showing
Please register or sign in to comment