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

Side by Side Diff: content/renderer/render_frame_impl.cc

Issue 2248013003: PlzNavigate: Fix crash when loading unreachable URL. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/renderer/render_frame_impl.h" 5 #include "content/renderer/render_frame_impl.h"
6 6
7 #include <map> 7 #include <map>
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 4860 matching lines...) Expand 10 before | Expand all | Expand 10 after
4871 routing_id_, common_params.url, common_params.navigation_start)); 4871 routing_id_, common_params.url, common_params.navigation_start));
4872 4872
4873 // Send the provisional load failure. 4873 // Send the provisional load failure.
4874 blink::WebURLError error = 4874 blink::WebURLError error =
4875 CreateWebURLError(common_params.url, has_stale_copy_in_cache, error_code); 4875 CreateWebURLError(common_params.url, has_stale_copy_in_cache, error_code);
4876 WebURLRequest failed_request = CreateURLRequestForNavigation( 4876 WebURLRequest failed_request = CreateURLRequestForNavigation(
4877 common_params, std::unique_ptr<StreamOverrideParameters>(), 4877 common_params, std::unique_ptr<StreamOverrideParameters>(),
4878 frame_->isViewSourceModeEnabled()); 4878 frame_->isViewSourceModeEnabled());
4879 SendFailedProvisionalLoad(failed_request, error, frame_); 4879 SendFailedProvisionalLoad(failed_request, error, frame_);
4880 4880
4881 // This check should have been done on the browser side already.
4882 if (!ShouldDisplayErrorPageForFailedLoad(error_code, common_params.url)) { 4881 if (!ShouldDisplayErrorPageForFailedLoad(error_code, common_params.url)) {
4883 NOTREACHED(); 4882 didStopLoading();
clamy 2016/08/17 13:17:06 We should send the IPC directly, as this is more o
arthursonzogni 2016/08/17 13:45:09 Done.
4884 return; 4883 return;
4885 } 4884 }
4886 4885
4887 // Make sure errors are not shown in view source mode. 4886 // Make sure errors are not shown in view source mode.
4888 frame_->enableViewSourceMode(false); 4887 frame_->enableViewSourceMode(false);
4889 4888
4890 // Replace the current history entry in reloads, and loads of the same url. 4889 // Replace the current history entry in reloads, and loads of the same url.
4891 // This corresponds to Blink's notion of a standard commit. 4890 // This corresponds to Blink's notion of a standard commit.
4892 // Also replace the current history entry if the browser asked for it 4891 // Also replace the current history entry if the browser asked for it
4893 // specifically. 4892 // specifically.
(...skipping 1449 matching lines...) Expand 10 before | Expand all | Expand 10 after
6343 // event target. Potentially a Pepper plugin will receive the event. 6342 // event target. Potentially a Pepper plugin will receive the event.
6344 // In order to tell whether a plugin gets the last mouse event and which it 6343 // In order to tell whether a plugin gets the last mouse event and which it
6345 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets 6344 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets
6346 // the event, it will notify us via DidReceiveMouseEvent() and set itself as 6345 // the event, it will notify us via DidReceiveMouseEvent() and set itself as
6347 // |pepper_last_mouse_event_target_|. 6346 // |pepper_last_mouse_event_target_|.
6348 pepper_last_mouse_event_target_ = nullptr; 6347 pepper_last_mouse_event_target_ = nullptr;
6349 #endif 6348 #endif
6350 } 6349 }
6351 6350
6352 } // namespace content 6351 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698