Changeset 228334 in webkit
- Timestamp:
- Feb 9, 2018 11:19:41 AM (6 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r228333 r228334 1 2018-02-09 Brent Fulgham <bfulgham@apple.com> 2 3 [macOS, iOS] Expose OS marketing version in UserAgent 4 https://bugs.webkit.org/show_bug.cgi?id=182629 5 <rdar://problem/37370975> 6 7 Reviewed by Daniel Bates. 8 9 Revert back to dynamically reading the operating system marketing version 10 rather than using a hard-coded version. 11 12 * page/cocoa/UserAgent.mm: 13 (WebCore::systemMarketingVersionForUserAgentString): 14 1 15 2018-02-08 Antoine Quint <graouts@apple.com> 2 16 -
trunk/Source/WebCore/page/cocoa/UserAgent.mm
r227552 r228334 27 27 #import "UserAgent.h" 28 28 29 #import "SystemVersion.h" 30 29 31 namespace WebCore { 30 32 … … 34 36 // we were concerned about old DHTML libraries interpreting "4." as Netscape 4. That's no longer a concern for us 35 37 // but we're sticking with the underscores for compatibility with the format used by older versions of Safari. 36 #if PLATFORM(MAC) 37 return ASCIILiteral("10_13_4"); 38 #else 39 return ASCIILiteral("11_3"); 40 #endif 38 return [systemMarketingVersion() stringByReplacingOccurrencesOfString:@"." withString:@"_"]; 41 39 } 42 40
Note: See TracChangeset
for help on using the changeset viewer.