Chromium Code Reviews
DescriptionFix LinkStyle SRI check when against 0 sized resource.
Before this CL, SRI check in LinkStyle::setCSSStyleSheet assumed that
the target CSS resource had >0 size.
However, it is possible that the CSS size is 0.
This CL removes the assert that assumed resourceBuffer() != nullptr,
which isn't true when the CSS empty.
In addition, this CL also ensures SRI check on empty CSS resource,
which doesn't affect user visible behaviour, but needed to emit SRI
verification failure messages.
Test by csharrison@chromium.org
BUG=655807
Committed: https://crrev.com/3b89d127027ca441b6abfcde56aee65add6423ca
Cr-Commit-Position: refs/heads/master@{#425611}
Patch Set 1 #
Total comments: 4
Patch Set 2 : review #
Total comments: 1
Messages
Total messages: 16 (8 generated)
|
|||||||||||||||||||||||||||||||||||||