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

Unified Diff: third_party/WebKit/LayoutTests/external/wpt/content-security-policy/support/testharness-helper.js

Issue 2456013002: CSP: 'connect-src' should not cause exceptions. (Closed)
Patch Set: Ugh. Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/external/wpt/content-security-policy/support/testharness-helper.js
diff --git a/third_party/WebKit/LayoutTests/external/wpt/content-security-policy/support/testharness-helper.js b/third_party/WebKit/LayoutTests/external/wpt/content-security-policy/support/testharness-helper.js
index d475d05115a59d0d4630894227e7c0a1ae4304ce..736312de7ef8eb11aec2d7d681fba001bde45ba7 100644
--- a/third_party/WebKit/LayoutTests/external/wpt/content-security-policy/support/testharness-helper.js
+++ b/third_party/WebKit/LayoutTests/external/wpt/content-security-policy/support/testharness-helper.js
@@ -13,6 +13,7 @@ function assert_no_event(test, obj, name) {
function waitUntilCSPEventForURL(test, url) {
return new Promise((resolve, reject) => {
self.addEventListener("securitypolicyviolation", test.step_func(e => {
+ console.log(e.blockedURI);
if (e.blockedURI == url)
resolve(e);
}));

Powered by Google App Engine
This is Rietveld 408576698