From 31f65e4625eacb3a74b5d1eba905d0600040c6ce Mon Sep 17 00:00:00 2001 From: Anne van Kesteren Date: Fri, 8 Jan 2016 16:11:39 +0100 Subject: [PATCH] Revert #111: allow redirects to data URLs The rationale for forbidding redirects to data URLs was not sound enough. Therefore this commit reverts https://github.com/whatwg/fetch/commit/f986c43f958a0f7ffdc46553d5a53a0c56a89a32 which introduced the restriction. --- Overview.html | 9 ++++----- Overview.src.html | 9 ++++----- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/Overview.html b/Overview.html index bded32339..6ecd5abef 100644 --- a/Overview.html +++ b/Overview.html @@ -2273,11 +2273,8 @@

5.3 HTTP fetch

location with request's current url. -
  • If locationURL is failure or its - scheme is "data", - return a network error. - +

  • If locationURL is failure, return a + network error.

  • If request's redirect count is twenty, return a @@ -2286,6 +2283,8 @@

    5.3 HTTP fetch

  • Increase request's redirect count by one. +

  • Unset request's same-origin data-URL flag. +

  • If request's redirect mode is "manual", set response to an diff --git a/Overview.src.html b/Overview.src.html index 2083e63a2..f4c5d2a4a 100644 --- a/Overview.src.html +++ b/Overview.src.html @@ -2212,11 +2212,8 @@

    HTTP fetch

    location with request's current url. -
  • If locationURL is failure or its - scheme is "data", - return a network error. - +

  • If locationURL is failure, return a + network error.

  • If request's redirect count is twenty, return a @@ -2225,6 +2222,8 @@

    HTTP fetch

  • Increase request's redirect count by one. +

  • Unset request's same-origin data-URL flag. +

  • If request's redirect mode is "manual", set response to an