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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/xmlhttprequest/workers/resources/referer-test.js

Issue 2651943002: Block subresource requests whose URLs include credentials. (Closed)
Patch Set: Test. 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/http/tests/xmlhttprequest/workers/resources/referer-test.js
diff --git a/third_party/WebKit/LayoutTests/http/tests/xmlhttprequest/workers/resources/referer-test.js b/third_party/WebKit/LayoutTests/http/tests/xmlhttprequest/workers/resources/referer-test.js
index 599e870459682761cbecfc64e86cf6543131ae5b..ad1c542d1c413442529687e6d2aa6fefa93c7197 100644
--- a/third_party/WebKit/LayoutTests/http/tests/xmlhttprequest/workers/resources/referer-test.js
+++ b/third_party/WebKit/LayoutTests/http/tests/xmlhttprequest/workers/resources/referer-test.js
@@ -13,7 +13,7 @@ function log(message)
console_messages.appendChild(item);
}
-var workerUrl = location.protocol + "//MyUserName:MySecurePassword@" + location.host + location.pathname.replace(/\/[^\/]*$/, "") + '/resources/referer.js#ref';
+var workerUrl = location.protocol + "//" + location.host + location.pathname.replace(/\/[^\/]*$/, "") + '/resources/referer.js#ref';
var worker = createWorker(workerUrl);
worker.onmessage = function(evt)

Powered by Google App Engine
This is Rietveld 408576698