Skip to content

Commit bbd9e14

Browse files
author
Kai Koehne
committed
Let new pages use the custom user agent setting
The default is UA_OVERRIDE_INHERIT, which means that it will only use the override value if there's a previous NavigationEntry. Task-number: QTBUG-48891 Change-Id: Id5269b5ad2a4b0a78379c2b7df3c3e901cd2a485 Reviewed-by: Joerg Bornemann <[email protected]>
1 parent 215fe3b commit bbd9e14

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/core/web_contents_delegate_qt.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ content::WebContents *WebContentsDelegateQt::OpenURLFromTab(content::WebContents
9999
load_url_params.extra_headers = params.extra_headers;
100100
load_url_params.should_replace_current_entry = params.should_replace_current_entry;
101101
load_url_params.is_renderer_initiated = params.is_renderer_initiated;
102+
load_url_params.override_user_agent = content::NavigationController::UA_OVERRIDE_TRUE;
102103

103104
if (params.transferred_global_request_id != content::GlobalRequestID())
104105
load_url_params.transferred_global_request_id = params.transferred_global_request_id;

0 commit comments

Comments
 (0)