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

Unified Diff: third_party/WebKit/Source/modules/fetch/FetchManager.cpp

Issue 2532833002: Reflect method restriction removal from Fetch API on data URL (Closed)
Patch Set: Rebase Created 4 years 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
« no previous file with comments | « third_party/WebKit/LayoutTests/http/tests/fetch/script-tests/thorough/scheme-data.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/modules/fetch/FetchManager.cpp
diff --git a/third_party/WebKit/Source/modules/fetch/FetchManager.cpp b/third_party/WebKit/Source/modules/fetch/FetchManager.cpp
index 198aacf5f99f4e40b6c31960578d37c22fad1206..3e5125a5851fbbf41f97ccf731ca9e265da48809 100644
--- a/third_party/WebKit/Source/modules/fetch/FetchManager.cpp
+++ b/third_party/WebKit/Source/modules/fetch/FetchManager.cpp
@@ -832,14 +832,6 @@ void FetchManager::Loader::performHTTPFetch(bool corsFlag,
void FetchManager::Loader::performDataFetch() {
ASSERT(m_request->url().protocolIsData());
- // Spec: https://fetch.spec.whatwg.org/#concept-basic-fetch
- // If |request|'s method is `GET` .... Otherwise, return a network error.
- if (m_request->method() != HTTPNames::GET) {
- performNetworkError(
- "Only 'GET' method is allowed for data URLs in Fetch API.");
- return;
- }
-
ResourceRequest request(m_request->url());
request.setRequestContext(m_request->context());
request.setUseStreamOnResponse(true);
« no previous file with comments | « third_party/WebKit/LayoutTests/http/tests/fetch/script-tests/thorough/scheme-data.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698