⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 267675 in webkit


Ignore:
Timestamp:
Sep 27, 2020, 1:00:20 PM (6 years ago)
Author:
Alan Coon
Message:

Cherry-pick r267148. rdar://problem/69594002

[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):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@267148 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Location:
branches/safari-610-branch/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/safari-610-branch/Source/WebCore/ChangeLog

    r267673 r267675  
     12020-09-27  Alan Coon  <alancoon@apple.com>
     2
     3        Cherry-pick r267148. rdar://problem/69594002
     4
     5    [macOS] Limit reported macOS release to 10.15 series
     6    https://bugs.webkit.org/show_bug.cgi?id=216593
     7    <rdar://problem/68937905>
     8   
     9    Reviewed by Maciej Stachowiak.
     10   
     11    If the reported system OS is 11.0 (or beyond) report the last stable release
     12    of macOS.
     13   
     14    * platform/mac/UserAgentMac.mm:
     15    (WebCore::standardUserAgentWithApplicationName):
     16   
     17   
     18    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@267148 268f45cc-cd09-0410-ab3c-d52691b4dbfc
     19
     20    2020-09-16  Brent Fulgham  <bfulgham@apple.com>
     21
     22            [macOS] Limit reported macOS release to 10.15 series
     23            https://bugs.webkit.org/show_bug.cgi?id=216593
     24            <rdar://problem/68937905>
     25
     26            Reviewed by Maciej Stachowiak.
     27
     28            If the reported system OS is 11.0 (or beyond) report the last stable release
     29            of macOS.
     30
     31            * platform/mac/UserAgentMac.mm:
     32            (WebCore::standardUserAgentWithApplicationName):
     33
    1342020-09-27  Alan Coon  <alancoon@apple.com>
    235
  • branches/safari-610-branch/Source/WebCore/platform/mac/UserAgentMac.mm

    r248501 r267675  
    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.