Chromium Code Reviews| Index: content/child/web_url_loader_impl.cc |
| diff --git a/content/child/web_url_loader_impl.cc b/content/child/web_url_loader_impl.cc |
| index 3b5126aea04bd0e021f38aba6e4f2318b8745f87..ffb296a9cc46ec32e60a313e18ed59132e72ad99 100644 |
| --- a/content/child/web_url_loader_impl.cc |
| +++ b/content/child/web_url_loader_impl.cc |
| @@ -13,6 +13,7 @@ |
| #include <vector> |
| #include "base/bind.h" |
| +#include "base/debug/dump_without_crashing.h" |
| #include "base/files/file_path.h" |
| #include "base/logging.h" |
| #include "base/memory/ptr_util.h" |
| @@ -612,6 +613,14 @@ void WebURLLoaderImpl::Context::Start(const WebURLRequest& request, |
| resource_request->resource_body_stream_url = stream_override_->stream_url; |
| } |
| + // PlzNavigate: Invalid renderer main resource requests are rejected by the |
| + // browser. This should not happen. |
|
clamy
2017/04/06 15:02:50
Add a
// TODO(arthursonzogni): Remove this when th
|
| + if (IsBrowserSideNavigationEnabled() && |
| + IsResourceTypeFrame(resource_request->resource_type) && |
| + !resource_request->resource_body_stream_url.SchemeIs(url::kBlobScheme)) { |
| + base::debug::DumpWithoutCrashing(); |
| + } |
| + |
| const RequestExtraData empty_extra_data; |
| const RequestExtraData* extra_data; |
| if (request.getExtraData()) |