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

This commit is contained in:
Jeremy Rose 2021-06-01 17:17:15 -07:00 committed by GitHub
parent fa703016f0
commit 750a762bf0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1978,7 +1978,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.override_user_agent = content::NavigationController::UA_OVERRIDE_TRUE;
// Discord non-committed entries to ensure that we don't re-use a pending
// entry