Skip to content

Commit

Permalink
feat: support loading debug urls with loadURL() (#29404) (#29491)
Browse files Browse the repository at this point in the history
  • Loading branch information
nornagon committed Jun 3, 2021
1 parent 6855004 commit 6e16908
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion shell/browser/api/electron_api_web_contents.cc
Expand Up @@ -2013,7 +2013,8 @@ void WebContents::LoadURL(const GURL& url,
// Calling LoadURLWithParams() can trigger JS which destroys |this|.
auto weak_this = GetWeakPtr();

params.transition_type = ui::PAGE_TRANSITION_TYPED;
params.transition_type = ui::PageTransitionFromInt(
ui::PAGE_TRANSITION_TYPED | ui::PAGE_TRANSITION_FROM_ADDRESS_BAR);
params.should_clear_history_list = true;
params.override_user_agent = content::NavigationController::UA_OVERRIDE_TRUE;
// Discord non-committed entries to ensure that we don't re-use a pending
Expand Down

0 comments on commit 6e16908

Please sign in to comment.