Should fix issues with Facebook not loading at all.

- closes #409
remotes/origin/falkon
nowrep 14 years ago
parent 8f75fd2532
commit ab6ca15afc
  1. 4
      src/lib/webview/webpage.cpp

@ -510,8 +510,8 @@ QString WebPage::userAgentForUrl(const QUrl &url) const
{ {
const QString &host = url.host(); const QString &host = url.host();
// Let Google services (and Facebook) play nice with us // Let Google services play nice with us
if (host.contains("google") || host.contains("facebook")) { if (host.contains("google")) {
if (s_fakeUserAgent.isEmpty()) { if (s_fakeUserAgent.isEmpty()) {
s_fakeUserAgent = QString("Mozilla/5.0 (%1) AppleWebKit/%2 (KHTML, like Gecko) Chrome/10.0 Safari/%2").arg(qz_buildSystem(), QupZilla::WEBKITVERSION); s_fakeUserAgent = QString("Mozilla/5.0 (%1) AppleWebKit/%2 (KHTML, like Gecko) Chrome/10.0 Safari/%2").arg(qz_buildSystem(), QupZilla::WEBKITVERSION);
} }

Loading…
Cancel
Save