summaryrefslogtreecommitdiffstats
path: root/src/core/web_contents_delegate_qt.cpp
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@theqtcompany.com>2015-11-04 09:27:07 +0100
committerKai Koehne <kai.koehne@theqtcompany.com>2015-11-05 12:46:12 +0000
commitbbd9e142c175f9e9f0252b95dd7f16295ea79bd0 (patch)
tree2d8ff3a2529aa921a19e962b0b909ca30fc859e4 /src/core/web_contents_delegate_qt.cpp
parent215fe3b16d35f3a597658fd378d35bdb56116267 (diff)
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 <joerg.bornemann@theqtcompany.com>
Diffstat (limited to 'src/core/web_contents_delegate_qt.cpp')
-rw-r--r--src/core/web_contents_delegate_qt.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/web_contents_delegate_qt.cpp b/src/core/web_contents_delegate_qt.cpp
index c16c76f75..14f2eda5a 100644
--- a/src/core/web_contents_delegate_qt.cpp
+++ b/src/core/web_contents_delegate_qt.cpp
@@ -99,6 +99,7 @@ content::WebContents *WebContentsDelegateQt::OpenURLFromTab(content::WebContents
load_url_params.extra_headers = params.extra_headers;
load_url_params.should_replace_current_entry = params.should_replace_current_entry;
load_url_params.is_renderer_initiated = params.is_renderer_initiated;
+ load_url_params.override_user_agent = content::NavigationController::UA_OVERRIDE_TRUE;
if (params.transferred_global_request_id != content::GlobalRequestID())
load_url_params.transferred_global_request_id = params.transferred_global_request_id;