Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/Source/WebCore/platform/ios/Device.cpp b/Source/WebCore/platform/ios/Device.cpp
- index e15d479..316268b 100644
- --- a/Source/WebCore/platform/ios/Device.cpp
- +++ b/Source/WebCore/platform/ios/Device.cpp
- @@ -33,6 +33,13 @@
- #include <wtf/RetainPtr.h>
- #include <wtf/text/WTFString.h>
- +const CFStringRef kMGQAppleInternalInstallCapability = CFSTR("apple-internal-install");
- +const CFStringRef kMGQMainScreenPitch = CFSTR("main-screen-pitch");
- +const CFStringRef kMGQMainScreenScale = CFSTR("main-screen-scale");
- +const CFStringRef kMGQiPadCapability = CFSTR("ipad");
- +const CFStringRef kMGQDeviceName = CFSTR("DeviceName");
- +const CFStringRef kMGQDeviceClassNumber = CFSTR("DeviceClassNumber");
- +
- namespace WebCore {
- MGDeviceClass deviceClass()
- diff --git a/Source/WebCore/platform/spi/ios/MobileGestaltSPI.h b/Source/WebCore/platform/spi/ios/MobileGestaltSPI.h
- index 2d9ebdf..2eeb47c 100644
- --- a/Source/WebCore/platform/spi/ios/MobileGestaltSPI.h
- +++ b/Source/WebCore/platform/spi/ios/MobileGestaltSPI.h
- @@ -38,12 +38,12 @@
- #else
- -EXTERN_C const CFStringRef kMGQAppleInternalInstallCapability = CFSTR("apple-internal-install");
- -EXTERN_C const CFStringRef kMGQMainScreenPitch = CFSTR("main-screen-pitch");
- -EXTERN_C const CFStringRef kMGQMainScreenScale = CFSTR("main-screen-scale");
- -EXTERN_C const CFStringRef kMGQiPadCapability = CFSTR("ipad");
- -EXTERN_C const CFStringRef kMGQDeviceName = CFSTR("DeviceName");
- -EXTERN_C const CFStringRef kMGQDeviceClassNumber = CFSTR("DeviceClassNumber");
- +EXTERN_C const CFStringRef kMGQAppleInternalInstallCapability;
- +EXTERN_C const CFStringRef kMGQMainScreenPitch;
- +EXTERN_C const CFStringRef kMGQMainScreenScale;
- +EXTERN_C const CFStringRef kMGQiPadCapability;
- +EXTERN_C const CFStringRef kMGQDeviceName;
- +EXTERN_C const CFStringRef kMGQDeviceClassNumber;
- typedef enum {
- MGDeviceClassInvalid = -1,
- diff --git a/Source/WebKit/mac/WebView/WebView.mm b/Source/WebKit/mac/WebView/WebView.mm
- index 4617547..288af8f 100644
- --- a/Source/WebKit/mac/WebView/WebView.mm
- +++ b/Source/WebKit/mac/WebView/WebView.mm
- @@ -825,8 +825,8 @@ static bool shouldDispatchJavaScriptWindowOnErrorEvents()
- static bool isInternalInstall()
- {
- - static bool isInternal = MGGetBoolAnswer(kMGQAppleInternalInstallCapability);
- - return isInternal;
- + // static bool isInternal = MGGetBoolAnswer(kMGQAppleInternalInstallCapability);
- + return false; // isInternal;
- }
- static bool didOneTimeInitialization = false;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement