Changeset 247427 in webkit


Ignore:
Timestamp:
Jul 15, 2019 1:58:52 AM (5 years ago)
Author:
Michael Catanzaro
Message:

[GTK] GitHub breaks on FreeBSD because of "unsupported browser"
https://bugs.webkit.org/show_bug.cgi?id=199745

Reviewed by Carlos Garcia Campos.

It's been a while since I last updated the fake version numbers in our user agent, both for
the user agent quirks for naughty websites and also the Safari version in our standard user
agent. Update them. This should fix github.com on FreeBSD at least. I also noticed some
wonkiness on Google Docs recently that I thought required this update, but I didn't do
anything about it at the time because I wasn't able to reproduce the issue when I tried
again later.

This could absolutely break websites, because the web is awful, but that's calculated risk.

  • platform/UserAgentQuirks.cpp:

(WebCore::UserAgentQuirks::stringForQuirk):

  • platform/glib/UserAgentGLib.cpp:

(WebCore::buildUserAgentString):

Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r247425 r247427  
     12019-07-15  Michael Catanzaro  <mcatanzaro@igalia.com>
     2
     3        [GTK] GitHub breaks on FreeBSD because of "unsupported browser"
     4        https://bugs.webkit.org/show_bug.cgi?id=199745
     5
     6        Reviewed by Carlos Garcia Campos.
     7
     8        It's been a while since I last updated the fake version numbers in our user agent, both for
     9        the user agent quirks for naughty websites and also the Safari version in our standard user
     10        agent. Update them. This should fix github.com on FreeBSD at least. I also noticed some
     11        wonkiness on Google Docs recently that I thought required this update, but I didn't do
     12        anything about it at the time because I wasn't able to reproduce the issue when I tried
     13        again later.
     14
     15        This could absolutely break websites, because the web is awful, but that's calculated risk.
     16
     17        * platform/UserAgentQuirks.cpp:
     18        (WebCore::UserAgentQuirks::stringForQuirk):
     19        * platform/glib/UserAgentGLib.cpp:
     20        (WebCore::buildUserAgentString):
     21
    1222019-07-14  Chris Dumez  <cdumez@apple.com>
    223
  • trunk/Source/WebCore/platform/UserAgentQuirks.cpp

    r246791 r247427  
    149149    case NeedsChromeBrowser:
    150150        // Get versions from https://chromium.googlesource.com/chromium/src.git
    151         return "Chrome/58.0.3029.81"_s;
     151        return "Chrome/75.0.3770.141"_s;
    152152    case NeedsMacintoshPlatform:
    153         return "Macintosh; Intel Mac OS X 10_13_4"_s;
     153        return "Macintosh; Intel Mac OS X 10_15"_s;
    154154    case NeedsLinuxDesktopPlatform:
    155155        return "X11; Linux x86_64"_s;
  • trunk/Source/WebCore/platform/glib/UserAgentGLib.cpp

    r241587 r247427  
    104104    // Version/X is mandatory *before* Safari/X to be a valid Safari UA. See
    105105    // https://bugs.webkit.org/show_bug.cgi?id=133403 for details.
    106     uaString.appendLiteral("Version/11.0 Safari/");
     106    uaString.appendLiteral("Version/13.0 Safari/");
    107107    uaString.append(versionForUAString());
    108108
Note: See TracChangeset for help on using the changeset viewer.