summaryrefslogtreecommitdiff
path: root/chromium/content/browser/renderer_host/navigation_request.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/content/browser/renderer_host/navigation_request.h')
-rw-r--r--chromium/content/browser/renderer_host/navigation_request.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/chromium/content/browser/renderer_host/navigation_request.h b/chromium/content/browser/renderer_host/navigation_request.h
index 8463d7bd60e..4b7b5fba93d 100644
--- a/chromium/content/browser/renderer_host/navigation_request.h
+++ b/chromium/content/browser/renderer_host/navigation_request.h
@@ -1081,7 +1081,15 @@ class CONTENT_EXPORT NavigationRequest
base::Optional<network::mojom::BlockedByResponseReason> EnforceCOEP();
bool IsOverridingUserAgent() const {
+#ifdef TOOLKIT_QT
+ if (!commit_params_->is_overriding_user_agent && !entry_overrides_ua_)
+ LOG(WARNING) << "UserAgent override lost";
+ return true; // QtWebEngine always uses profile specific user-agent, and
+ // Chromium is _really_ broken when it comes to tracking _if_ overrides
+ // should be used, but not the overrides themselves
+#else
return commit_params_->is_overriding_user_agent || entry_overrides_ua_;
+#endif
}
// Returns the user-agent override, or an empty string if one isn't set.