Changeset 267148 in webkit


Ignore:
Timestamp:
Sep 16, 2020 9:34:31 AM (4 years ago)
Author:
Brent Fulgham
Message:

[macOS] Limit reported macOS release to 10.15 series
https://bugs.webkit.org/show_bug.cgi?id=216593
<rdar://problem/68937905>

Reviewed by Maciej Stachowiak.

If the reported system OS is 11.0 (or beyond) report the last stable release
of macOS.

  • platform/mac/UserAgentMac.mm:

(WebCore::standardUserAgentWithApplicationName):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r267147 r267148  
     12020-09-16  Brent Fulgham  <bfulgham@apple.com>
     2
     3        [macOS] Limit reported macOS release to 10.15 series
     4        https://bugs.webkit.org/show_bug.cgi?id=216593
     5        <rdar://problem/68937905>
     6
     7        Reviewed by Maciej Stachowiak.
     8
     9        If the reported system OS is 11.0 (or beyond) report the last stable release
     10        of macOS.
     11
     12        * platform/mac/UserAgentMac.mm:
     13        (WebCore::standardUserAgentWithApplicationName):
     14
    1152020-09-16  Chris Dumez  <cdumez@apple.com>
    216
  • trunk/Source/WebCore/platform/mac/UserAgentMac.mm

    r248501 r267148  
    3636{
    3737    String osVersion = systemMarketingVersionForUserAgentString();
     38    if (!osVersion.startsWith("10"))
     39        osVersion = "10_15_6"_s;
     40   
    3841    String appNameSuffix = applicationName.isEmpty() ? "" : makeString(" ", applicationName);
    3942
Note: See TracChangeset for help on using the changeset viewer.