Source/WebCore/ChangeLog

 12014-08-03 Dan Bernstein <mitz@apple.com>
 2
 3 <rdar://problem/17897271> REGRESSION: OS marketing version in iOS Simulator user-agent string is the host OS’s
 4 https://bugs.webkit.org/show_bug.cgi?id=135549
 5
 6 Reviewed by NOBODY (OOPS!).
 7
 8 * platform/cocoa/SystemVersion.mm:
 9 (WebCore::createSystemMarketingVersion): On the iOS Simulator, locate the system Library
 10 directory relative to the Simulator root.
 11
1122014-08-02 Jeremy Jones <jeremyj@apple.com>
213
314 Support both window and view based video fullscreen.
171983

Source/WebCore/platform/cocoa/SystemVersion.mm

@@static NSString *createSystemMarketingVe
3333{
3434 // Can't use -[NSProcessInfo operatingSystemVersionString] because it has too much stuff we don't want.
3535 NSString *systemLibraryPath = [NSSearchPathForDirectoriesInDomains(NSLibraryDirectory, NSSystemDomainMask, YES) objectAtIndex:0];
 36#if PLATFORM(IOS_SIMULATOR)
 37 if (char *simulatorRoot = getenv("SIMULATOR_ROOT"))
 38 systemLibraryPath = [NSString stringWithFormat:@"%s/%@", simulatorRoot, systemLibraryPath];
 39#endif
3640 NSString *systemVersionPlistPath = [systemLibraryPath stringByAppendingPathComponent:@"CoreServices/SystemVersion.plist"];
3741 NSDictionary *systemVersionInfo = [NSDictionary dictionaryWithContentsOfFile:systemVersionPlistPath];
3842 return [[systemVersionInfo objectForKey:@"ProductVersion"] copy];
171960