Skip to content

Commit

Permalink
Don't use Chromium's history list
Browse files Browse the repository at this point in the history
  • Loading branch information
zcbenz committed Apr 27, 2015
1 parent 0143a45 commit 16b2f08
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions atom/browser/api/atom_api_web_contents.cc
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ content::WebContents* WebContents::OpenURLFromTab(
load_url_params.is_renderer_initiated = params.is_renderer_initiated;
load_url_params.transferred_global_request_id =
params.transferred_global_request_id;
load_url_params.should_clear_history_list = true;

web_contents()->GetController().LoadURLWithParams(load_url_params);
return web_contents();
Expand Down Expand Up @@ -380,6 +381,7 @@ void WebContents::LoadURL(const GURL& url, const mate::Dictionary& options) {
blink::WebReferrerPolicyDefault);

params.transition_type = ui::PAGE_TRANSITION_TYPED;
params.should_clear_history_list = true;
params.override_user_agent = content::NavigationController::UA_OVERRIDE_TRUE;
web_contents()->GetController().LoadURLWithParams(params);
}
Expand Down
1 change: 1 addition & 0 deletions atom/browser/native_window.cc
Original file line number Diff line number Diff line change
Expand Up @@ -565,6 +565,7 @@ content::WebContents* NativeWindow::OpenURLFromTab(
load_url_params.is_renderer_initiated = params.is_renderer_initiated;
load_url_params.transferred_global_request_id =
params.transferred_global_request_id;
load_url_params.should_clear_history_list = true;

source->GetController().LoadURLWithParams(load_url_params);
return source;
Expand Down

0 comments on commit 16b2f08

Please sign in to comment.