Chromium Code Reviews| Index: content/browser/frame_host/navigation_controller_impl.cc |
| diff --git a/content/browser/frame_host/navigation_controller_impl.cc b/content/browser/frame_host/navigation_controller_impl.cc |
| index bb9b2c55cd6eb7ec0d430e889802e34f7ac407b3..9667ddd598cdaff167021dcd4becd9d7014aaff7 100644 |
| --- a/content/browser/frame_host/navigation_controller_impl.cc |
| +++ b/content/browser/frame_host/navigation_controller_impl.cc |
| @@ -663,16 +663,7 @@ void NavigationControllerImpl::LoadURLWithParams(const LoadURLParams& params) { |
| // Checks based on params.load_type. |
| switch (params.load_type) { |
| case LOAD_TYPE_DEFAULT: |
| - break; |
| case LOAD_TYPE_HTTP_POST: |
| - // TODO(lukasza): This assertion is false - it is also possible to POST to |
| - // an chrome-extension://... URI. This might be more common when |
| - // allowing renderer-initiated POST after fixing https://crbug.com/344348. |
| - if (!params.url.SchemeIs(url::kHttpScheme) && |
| - !params.url.SchemeIs(url::kHttpsScheme)) { |
| - NOTREACHED() << "Http post load must use http(s) scheme."; |
| - return; |
| - } |
|
Łukasz Anforowicz
2016/07/20 22:23:04
I think simply removing the DCHECK is the best opt
Charlie Reis
2016/07/20 22:50:38
Thanks. I think I agree, if the net stack is just
Charlie Reis
2016/07/21 23:25:21
Sure.
|
| break; |
| case LOAD_TYPE_DATA: |
| if (!params.url.SchemeIs(url::kDataScheme)) { |