Disable window occlusion notifications for App Store on Mac.
[WebKit-https.git] / Source / WebKit2 / UIProcess / API / mac / WKView.mm
index 446eb31d0fe4aad194acd4213650e720f1861178..dc26bee6d8fc890f1d20bb40c0c8f2459e819463 100644 (file)
@@ -2313,6 +2313,11 @@ static void windowBecameOccluded(uint32_t, void* data, uint32_t dataLength, void
 
 + (BOOL)_registerWindowOcclusionNotificationHandlers
 {
+    // Disable window occlusion notifications for App Store until <rdar://problem/13255270> is resolved.
+    static bool isAppStore = [[[NSBundle mainBundle] bundleIdentifier] isEqualToString:@"com.apple.appstore"];
+    if (isAppStore)
+        return NO;
+
     if (windowOcclusionNotificationsAreRegistered)
         return YES;