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

Unified Diff: third_party/WebKit/LayoutTests/external/wpt/common/get-host-info.sub.js

Issue 2704543002: Import wpt@3bd204d7e86fd81e98e63f4ce59b95d98bad1c54 (Closed)
Patch Set: Created 3 years, 10 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/common/get-host-info.sub.js
diff --git a/third_party/WebKit/LayoutTests/external/wpt/common/get-host-info.sub.js b/third_party/WebKit/LayoutTests/external/wpt/common/get-host-info.sub.js
index 5e60c49767b41df41035fc46eed02909e698839b..c0ad19bc7a3ad24652ab03630963b8b6244ee1a9 100644
--- a/third_party/WebKit/LayoutTests/external/wpt/common/get-host-info.sub.js
+++ b/third_party/WebKit/LayoutTests/external/wpt/common/get-host-info.sub.js
@@ -5,6 +5,7 @@ function get_host_info() {
var HTTPS_PORT = '{{ports[https][0]}}';
var ORIGINAL_HOST = '{{host}}';
var REMOTE_HOST = (ORIGINAL_HOST === 'localhost') ? '127.0.0.1' : ('www1.' + ORIGINAL_HOST);
+ var OTHER_HOST = '{{domains[www2]}}';
return {
HTTP_PORT: HTTP_PORT,
@@ -21,6 +22,8 @@ function get_host_info() {
HTTP_REMOTE_ORIGIN_WITH_DIFFERENT_PORT: 'http://' + REMOTE_HOST + ':' + HTTP_PORT2,
HTTPS_REMOTE_ORIGIN: 'https://' + REMOTE_HOST + ':' + HTTPS_PORT,
HTTPS_REMOTE_ORIGIN_WITH_CREDS: 'https://foo:bar@' + REMOTE_HOST + ':' + HTTPS_PORT,
+ UNAUTHENTICATED_ORIGIN: 'http://' + OTHER_HOST + ':' + HTTP_PORT,
+ AUTHENTICATED_ORIGIN: 'https://' + OTHER_HOST + ':' + HTTPS_PORT
};
}

Powered by Google App Engine
This is Rietveld 408576698