Changeset 239451 in webkit


Ignore:
Timestamp:
Dec 20, 2018 10:27:46 AM (5 years ago)
Author:
Brent Fulgham
Message:

WKWebView default UA doesn't freeze the build number
https://bugs.webkit.org/show_bug.cgi?id=192809
<rdar://problem/44687185>

Reviewed by Andy Estes.

Always reports the frozen build number.

Source/WebKit:

  • UIProcess/API/Cocoa/WKWebViewConfiguration.mm:

(defaultApplicationNameForUserAgent): Do not expose the actual build number through this API.

Source/WebKitLegacy/mac:

  • WebView/WebView.mm:

(-[WebView _setBrowserUserAgentProductVersion:buildVersion:bundleVersion:]): Do not report the
actual build number through this method call.
(-[WebView _setUIWebViewUserAgentWithBuildVersion:]): Ditto.

Location:
trunk/Source
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r239446 r239451  
     12018-12-20  Brent Fulgham  <bfulgham@apple.com>
     2
     3        WKWebView default UA doesn't freeze the build number
     4        https://bugs.webkit.org/show_bug.cgi?id=192809
     5        <rdar://problem/44687185>
     6
     7        Reviewed by Andy Estes.
     8
     9        Always reports the frozen build number.
     10
     11        * UIProcess/API/Cocoa/WKWebViewConfiguration.mm:
     12        (defaultApplicationNameForUserAgent): Do not expose the actual build number through this API.
     13
    1142018-12-20  Jer Noble  <jer.noble@apple.com>
    215
  • trunk/Source/WebKit/UIProcess/API/Cocoa/WKWebViewConfiguration.mm

    r238771 r239451  
    457457{
    458458#if PLATFORM(IOS_FAMILY)
    459     return [@"Mobile/" stringByAppendingString:[UIDevice currentDevice].buildVersion];
     459    return @"Mobile/15E148";
    460460#else
    461461    return nil;
  • trunk/Source/WebKitLegacy/mac/ChangeLog

    r239427 r239451  
     12018-12-20  Brent Fulgham  <bfulgham@apple.com>
     2
     3        WKWebView default UA doesn't freeze the build number
     4        https://bugs.webkit.org/show_bug.cgi?id=192809
     5        <rdar://problem/44687185>
     6
     7        Reviewed by Andy Estes.
     8
     9        Always reports the frozen build number.
     10
     11        * WebView/WebView.mm:
     12        (-[WebView _setBrowserUserAgentProductVersion:buildVersion:bundleVersion:]): Do not report the
     13        actual build number through this method call.
     14        (-[WebView _setUIWebViewUserAgentWithBuildVersion:]): Ditto.
     15
    1162018-12-19  Chris Dumez  <cdumez@apple.com>
    217
  • trunk/Source/WebKitLegacy/mac/WebView/WebView.mm

    r239417 r239451  
    11591159- (void)_setBrowserUserAgentProductVersion:(NSString *)productVersion buildVersion:(NSString *)buildVersion bundleVersion:(NSString *)bundleVersion
    11601160{
    1161     [self setApplicationNameForUserAgent:[NSString stringWithFormat:@"Version/%@ Mobile/%@ Safari/%@", productVersion, buildVersion, bundleVersion]];
     1161    // The web-visible build and bundle versions are frozen to remove a fingerprinting surface
     1162    UNUSED_PARAM(buildVersion);
     1163    [self setApplicationNameForUserAgent:[NSString stringWithFormat:@"Version/%@ Mobile/15E148 Safari/%@", productVersion, bundleVersion]];
    11621164}
    11631165
    11641166- (void)_setUIWebViewUserAgentWithBuildVersion:(NSString *)buildVersion
    11651167{
    1166     [self setApplicationNameForUserAgent:[@"Mobile/" stringByAppendingString:buildVersion]];
     1168    UNUSED_PARAM(buildVersion);
     1169    [self setApplicationNameForUserAgent:@"Mobile/15E148"];
    11671170}
    11681171#endif // PLATFORM(IOS_FAMILY)
Note: See TracChangeset for help on using the changeset viewer.