Fire error event when script integrity check fails.

Currently, Blink has been firing load events in the case of subresource
integrity failure, while giving a console message. As per
https://github.com/w3c/webappsec/issues/149, the spec has been modified
to explicitly state that error events should be fired. This makes that
change for script tag integrity checks.

This modifies the behavior of ScriptLoader::executeScript to return a
bool that is false if and if only there is a fatal error, currently only
integrity check failures.

BUG=464648

Review URL: https://codereview.chromium.org/1010433007

git-svn-id: svn://svn.chromium.org/blink/trunk@192482 bbb929c8-8fbe-4397-9dbb-9b2b20218538
10 files changed
tree: 01cbdcf2fdbc63a44c2bca6dbdfb19246a8c77da
  1. third_party/