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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/fetch-request-xhr-iframe.html

Issue 2254693002: Delay generation of User-Agent header to URLRequestHttpJob and accept custom User-Agent from XHR/Fe… Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changed Android test Created 4 years, 4 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/serviceworker/resources/fetch-request-xhr-iframe.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/fetch-request-xhr-iframe.html b/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/fetch-request-xhr-iframe.html
index 609ac6e433a88b35191f40879e3eddad4a4fc429..dda6288e5250ee061aba162a8d6e1ec75e491d11 100644
--- a/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/fetch-request-xhr-iframe.html
+++ b/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/fetch-request-xhr-iframe.html
@@ -69,7 +69,7 @@ function get_header_test() {
.then(function(response) {
assert_array_equals(
get_sorted_header_name_list(response.headers),
- ["accept", "user-agent"],
+ ["accept"],
'event.request has the expected headers for same-origin GET.');
});
}
@@ -81,7 +81,7 @@ function post_header_test() {
.then(function(response) {
assert_array_equals(
get_sorted_header_name_list(response.headers),
- ["accept", "content-type", "origin", "user-agent"],
+ ["accept", "content-type", "origin"],
'event.request has the expected headers for same-origin POST.');
});
}
@@ -91,7 +91,7 @@ function cross_origin_get_header_test() {
.then(function(response) {
assert_array_equals(
get_sorted_header_name_list(response.headers),
- ["accept", "user-agent"],
+ ["accept"],
'event.request has the expected headers for cross-origin GET.');
});
}
@@ -103,7 +103,7 @@ function cross_origin_post_header_test() {
.then(function(response) {
assert_array_equals(
get_sorted_header_name_list(response.headers),
- ["accept", "content-type", "origin", "user-agent"],
+ ["accept", "content-type", "origin"],
'event.request has the expected headers for cross-origin POST.');
});
}

Powered by Google App Engine
This is Rietveld 408576698