Bug #821 » qt6-prevent-user-agent-reload.patch
| 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->controller().Reload(ReloadType::BYPASSING_CACHE, true);
|
||
|
}
|
||
|
}));
|
||
|
*/
|
||
|
observers_.NotifyObservers(&WebContentsObserver::UserAgentOverrideSet,
|
||
|
ua_override);
|
||
- « Previous
- 1
- 2
- Next »