0

Honors requests to navigate in existing frame for the root

Without this we drop the request on the floor.

BUG=none
TEST=none
R=ben@chromium.org

Review URL: https://codereview.chromium.org/1297073003

Cr-Commit-Position: refs/heads/master@{#343775}
This commit is contained in:
sky
2015-08-17 16:37:40 -07:00
committed by Commit bot
parent 00c8be997d
commit fdff335c89

@ -137,9 +137,9 @@ void WebViewImpl::RequestNavigate(Frame* source,
Frame* target_frame,
mojo::URLRequestPtr request) {
// TODO: this needs security checks.
if (target_type == mandoline::NAVIGATION_TARGET_TYPE_EXISTING_FRAME) {
if (target_frame && target_frame != frame_tree_->root() &&
target_frame->view()) {
if (target_type == mandoline::NAVIGATION_TARGET_TYPE_EXISTING_FRAME &&
target_frame != frame_tree_->root()) {
if (target_frame && target_frame->view()) {
NavigateExistingFrame(target_frame, request.Pass());
return;
}