Tolerate multiple ParseIntegrityAttribute calls for HTMLPreloadScanner.
HTMLPreloadScanner is written to be simple and fast. SubresourceIntegrity::ParseIntegrtiyAttribute assumes that the caller does error checking, and won't call it twice for the same element. Reconcile the two by adding a relaxed version, TryParseIntegrityAttribute. Bug: 818385 Change-Id: I722fb80c283249941e8db14a8efc9af392bc1cbc Reviewed-on: https://chromium-review.googlesource.com/948848 Commit-Queue: Daniel Vogelheim <vogelheim@chromium.org> Reviewed-by:Yoav Weiss <yoav@yoav.ws> Reviewed-by:
Mike West <mkwst@chromium.org> Cr-Commit-Position: refs/heads/master@{#542891}
Showing
Please register or sign in to comment