https://chromium.googlesource.com/chromium/src.git/+/214d16835a233ef1e01bcf54412803cc3593ce8ecommit 214d16835a233ef1e01bcf54412803cc3593ce8e
Author: Hiroshige Hayashizaki <
hiro...@chromium.org>
Date: Tue Oct 31 01:50:26 2017
Support integrity attribute for module scripts
This CL enables subresource integrity check for module scripts, by
- Clearing ScriptFetchOptions' integrity for descendant module
scripts in ModuleTreeLinker.cpp, as specced,
- Setting FetchParameters' integrity according to ScriptFetchOptions
in ModuleScriptLoader::Fetch(), and
- Checking the integrity check result in WasModuleLoadSuccessful()
and reports console messages if any.
For this, SubresourceIntegrityHelper::GetConsoleMessages() is
introduced.
Bug: 771486, 772100
Change-Id: I3f01fd018dad625de9440fe4ab7e1d9ee7feb5ab
Reviewed-on:
https://chromium-review.googlesource.com/738221