Changeset 239451 in webkit
- Timestamp:
- Dec 20, 2018 10:27:46 AM (5 years ago)
- Location:
- trunk/Source
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r239446 r239451 1 2018-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 1 14 2018-12-20 Jer Noble <jer.noble@apple.com> 2 15 -
trunk/Source/WebKit/UIProcess/API/Cocoa/WKWebViewConfiguration.mm
r238771 r239451 457 457 { 458 458 #if PLATFORM(IOS_FAMILY) 459 return [@"Mobile/" stringByAppendingString:[UIDevice currentDevice].buildVersion];459 return @"Mobile/15E148"; 460 460 #else 461 461 return nil; -
trunk/Source/WebKitLegacy/mac/ChangeLog
r239427 r239451 1 2018-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 1 16 2018-12-19 Chris Dumez <cdumez@apple.com> 2 17 -
trunk/Source/WebKitLegacy/mac/WebView/WebView.mm
r239417 r239451 1159 1159 - (void)_setBrowserUserAgentProductVersion:(NSString *)productVersion buildVersion:(NSString *)buildVersion bundleVersion:(NSString *)bundleVersion 1160 1160 { 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]]; 1162 1164 } 1163 1165 1164 1166 - (void)_setUIWebViewUserAgentWithBuildVersion:(NSString *)buildVersion 1165 1167 { 1166 [self setApplicationNameForUserAgent:[@"Mobile/" stringByAppendingString:buildVersion]]; 1168 UNUSED_PARAM(buildVersion); 1169 [self setApplicationNameForUserAgent:@"Mobile/15E148"]; 1167 1170 } 1168 1171 #endif // PLATFORM(IOS_FAMILY)
Note: See TracChangeset
for help on using the changeset viewer.