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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/serviceworker/navigation-redirect.html

Issue 2785123002: Make no-location redirect response to be "opaque redirect" when redirect mode is manual. (Closed)
Patch Set: add link to crbug.com/707185 Created 3 years, 8 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/navigation-redirect.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/serviceworker/navigation-redirect.html b/third_party/WebKit/LayoutTests/http/tests/serviceworker/navigation-redirect.html
index a50a4a960dae39ae1bd7c73364cc7943c5010c83..1ba7f87cf8f80807f6a27306532e1395e7f95cc1 100644
--- a/third_party/WebKit/LayoutTests/http/tests/serviceworker/navigation-redirect.html
+++ b/third_party/WebKit/LayoutTests/http/tests/serviceworker/navigation-redirect.html
@@ -370,6 +370,16 @@ promise_test(function(t) {
[OTHER_ORIGIN_SCOPE]]);
});
}, 'Redirect to other-origin in-scope with opaque redirect response.');
+promise_test(function(t) {
+ return setup_environment(t).then(function() {
+ return test_redirect(
+ SCOPE1 + 'sw=opaque&noLocationRedirect',
+ SCOPE1 + 'sw=opaque&noLocationRedirect',
+ [[SCOPE1 + 'sw=opaque&noLocationRedirect'],
+ [],
+ []]);
+ });
+ }, 'No location redirect response.');
// Opaque redirect passed through Cache.
// SW responds with an opaque redirectresponse from the Cache API.
@@ -443,5 +453,16 @@ promise_test(function(t) {
},
'Redirect to other-origin in-scope with opaque redirect response which ' +
'is passed through Cache.');
+promise_test(function(t) {
+ return setup_environment(t).then(function() {
+ return test_redirect(
+ SCOPE1 + 'sw=opaqueThroughCache&noLocationRedirect',
+ SCOPE1 + 'sw=opaqueThroughCache&noLocationRedirect',
+ [[SCOPE1 + 'sw=opaqueThroughCache&noLocationRedirect'],
+ [],
+ []]);
+ });
+ }, 'No location redirect response via Cache.');
+
</script>
</body>

Powered by Google App Engine
This is Rietveld 408576698