feat: support loading debug urls with loadURL() (#29404)
This commit is contained in:
parent
fa703016f0
commit
750a762bf0
1 changed files with 2 additions and 1 deletions
|
@ -1978,7 +1978,8 @@ void WebContents::LoadURL(const GURL& url,
|
||||||
// Calling LoadURLWithParams() can trigger JS which destroys |this|.
|
// Calling LoadURLWithParams() can trigger JS which destroys |this|.
|
||||||
auto weak_this = GetWeakPtr();
|
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.override_user_agent = content::NavigationController::UA_OVERRIDE_TRUE;
|
params.override_user_agent = content::NavigationController::UA_OVERRIDE_TRUE;
|
||||||
// Discord non-committed entries to ensure that we don't re-use a pending
|
// Discord non-committed entries to ensure that we don't re-use a pending
|
||||||
// entry
|
// entry
|
||||||
|
|
Loading…
Add table
Reference in a new issue