Browse Source

feat: support loading debug urls with loadURL() (#29404) (#29491)

Jeremy Rose 3 years ago
parent
commit
6e169089f0
1 changed files with 2 additions and 1 deletions
  1. 2 1
      shell/browser/api/electron_api_web_contents.cc

+ 2 - 1
shell/browser/api/electron_api_web_contents.cc

@@ -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