Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(90)

Issue 1010433007: Fire error event when script integrity check fails. (Closed)

Created:
5 years, 9 months ago by jww
Modified:
5 years, 9 months ago
Reviewers:
Mike West
CC:
blink-reviews, blink-reviews-dom_chromium.org, blink-reviews-html_chromium.org, dglazkov+blink, eae+blinkwatch, rwlbuis, sof
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

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 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=192482

Patch Set 1 #

Total comments: 12

Patch Set 2 : Updated comment #

Messages

Total messages: 9 (2 generated)
jww
Mike, can you take a look? I'll be uploading a separate CL to do the ...
5 years, 9 months ago (2015-03-23 18:39:26 UTC) #2
Mike West
I don't understand why we'd special-case integrity failures. If we can't run a script for ...
5 years, 9 months ago (2015-03-23 19:49:43 UTC) #3
jww
See my comments, but basically, yeah, we have a bug for CSP and MIME types ...
5 years, 9 months ago (2015-03-23 21:56:52 UTC) #4
Mike West
Alright, as long as you'll be taking care of the other cases in followup CLs, ...
5 years, 9 months ago (2015-03-24 04:51:31 UTC) #5
jww
Yup, I definitely will. I have a follow up CL almost ready.
5 years, 9 months ago (2015-03-24 17:26:01 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1010433007/20001
5 years, 9 months ago (2015-03-24 17:26:27 UTC) #8
commit-bot: I haz the power
5 years, 9 months ago (2015-03-24 20:28:07 UTC) #9
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=192482

Powered by Google App Engine
This is Rietveld 408576698