Disable window occlusion notifications for App Store on Mac.
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 21 Feb 2013 02:41:56 +0000 (02:41 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 21 Feb 2013 02:41:56 +0000 (02:41 +0000)
https://bugs.webkit.org/show_bug.cgi?id=110417

Patch by Kiran Muppala <cmuppala@apple.com> on 2013-02-20
Reviewed by Simon Fraser.

Temporary fix to workaround issues with window occlusion notifications
in App Store.

* UIProcess/API/mac/WKView.mm:
(+[WKView _registerWindowOcclusionNotificationHandlers]): Return early
if the main bundle identifier matches that of App Store.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@143552 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebKit2/ChangeLog
Source/WebKit2/UIProcess/API/mac/WKView.mm

index 4318a566fad7d92b554999b49fe49482efa2495b..d9ad696372d6dac47123b7510ac5b9a45672aad8 100644 (file)
@@ -1,3 +1,17 @@
+2013-02-20  Kiran Muppala  <cmuppala@apple.com>
+
+        Disable window occlusion notifications for App Store on Mac.
+        https://bugs.webkit.org/show_bug.cgi?id=110417
+
+        Reviewed by Simon Fraser.
+
+        Temporary fix to workaround issues with window occlusion notifications
+        in App Store.
+
+        * UIProcess/API/mac/WKView.mm:
+        (+[WKView _registerWindowOcclusionNotificationHandlers]): Return early
+        if the main bundle identifier matches that of App Store.
+
 2013-02-20  Mark Rowe  <mrowe@apple.com>
 
         <https://webkit.org/b/110410> Specify the plug-in process / service entitlements via the Xcode configuration.
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;