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

Issue 2500383002: CSP: Fire 'securitypolicyviolation' events in Workers. (Closed)

Created:
4 years, 1 month ago by Mike West
Modified:
4 years, 1 month ago
Reviewers:
foolip, estark
CC:
blink-reviews, chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

CSP: Fire 'securitypolicyviolation' events in Workers. Currently, we fire a violation event only if the violation occurs within a document. We ought to fire the event for Workers as well. This patch does so. Intent to Ship: https://groups.google.com/a/chromium.org/d/msg/blink-dev/VYhixsNgEHM/SilKZTYOAwAJ BUG=665356 Committed: https://crrev.com/e597dade5ea41f95c5b50f564fbb1d77553c396b Cr-Commit-Position: refs/heads/master@{#432835}

Patch Set 1 #

Patch Set 2 : More. #

Patch Set 3 : oops. #

Total comments: 7

Patch Set 4 : Feedback. #

Messages

Total messages: 22 (14 generated)
Mike West
foolip@: Interested in looking at these tests? estark@: Mind looking at the code in your ...
4 years, 1 month ago (2016-11-15 12:36:59 UTC) #6
foolip
tests lgtm % nits https://codereview.chromium.org/2500383002/diff/40001/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/resources/testharness-helper.js File third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/resources/testharness-helper.js (right): https://codereview.chromium.org/2500383002/diff/40001/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/resources/testharness-helper.js#newcode2 third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/resources/testharness-helper.js:2: var context = (typeof WorkerGlobalScope ...
4 years, 1 month ago (2016-11-15 16:10:17 UTC) #11
estark
lgtm https://codereview.chromium.org/2500383002/diff/40001/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/securitypolicyviolation/inside-dedicated-worker.html File third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/securitypolicyviolation/inside-dedicated-worker.html (right): https://codereview.chromium.org/2500383002/diff/40001/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/securitypolicyviolation/inside-dedicated-worker.html#newcode16 third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/securitypolicyviolation/inside-dedicated-worker.html:16: // none are fired. missing paren at the ...
4 years, 1 month ago (2016-11-16 04:47:40 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2500383002/60001
4 years, 1 month ago (2016-11-17 08:16:43 UTC) #17
Mike West
Thanks to you both. https://codereview.chromium.org/2500383002/diff/40001/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/resources/testharness-helper.js File third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/resources/testharness-helper.js (right): https://codereview.chromium.org/2500383002/diff/40001/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/resources/testharness-helper.js#newcode2 third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/resources/testharness-helper.js:2: var context = (typeof WorkerGlobalScope ...
4 years, 1 month ago (2016-11-17 08:59:15 UTC) #18
foolip
https://codereview.chromium.org/2500383002/diff/40001/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/securitypolicyviolation/resources/inside-worker.php File third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/securitypolicyviolation/resources/inside-worker.php (right): https://codereview.chromium.org/2500383002/diff/40001/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/securitypolicyviolation/resources/inside-worker.php#newcode11 third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/securitypolicyviolation/resources/inside-worker.php:11: if (e.data == "SecurityPolicyViolation from Document") On 2016/11/17 08:59:15, ...
4 years, 1 month ago (2016-11-17 09:09:23 UTC) #19
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 1 month ago (2016-11-17 10:37:02 UTC) #20
commit-bot: I haz the power
4 years, 1 month ago (2016-11-17 10:39:40 UTC) #22
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/e597dade5ea41f95c5b50f564fbb1d77553c396b
Cr-Commit-Position: refs/heads/master@{#432835}

Powered by Google App Engine
This is Rietveld 408576698