Project

General

Profile

Bug #821 » qt5-prevent-user-agent-reload.patch

Soren Stoutner, 05/22/2023 06:48 AM

View differences:

src/3rdparty/chromium/content/browser/web_contents/web_contents_impl.cc
// Send the new override string to all renderers in the current page.
SyncRendererPrefs();
/* Do not automatically reload the page as this causes problems when
* switching the user agent while loading a new website.
* Rather, the programmer should manually reload the website when
* approprite.
*
* See https://bugreports.qt.io/browse/QTBUG-109673 for more information.
// Reload the page if a load is currently in progress to avoid having
// different parts of the page loaded using different user agents.
// No need to reload if the current entry matches that of the
......
frame_tree_.root()->navigation_request()->ua_change_requires_reload())) {
controller_.Reload(ReloadType::BYPASSING_CACHE, true);
}
*/
observers_.ForEachObserver([&](WebContentsObserver* observer) {
observer->UserAgentOverrideSet(ua_override);
(1-1/2)