Title: [144259] trunk/Tools
Revision
144259
Author
[email protected]
Date
2013-02-27 19:51:43 -0800 (Wed, 27 Feb 2013)

Log Message

Initialize page visibility after creating WebKitTestRunner WebView on Mac
https://bugs.webkit.org/show_bug.cgi?id=111025

Patch by Kiran Muppala <[email protected]> on 2013-02-27
Reviewed by Simon Fraser.

Set page visibility to "visible" after creating WebView to override
visibility state inferred from window occlusion notifications on Mac.

* WebKitTestRunner/TestController.cpp:
(WTR::TestController::createWebViewWithOptions): Add call to
setVisibilityState.

Modified Paths

Diff

Modified: trunk/Tools/ChangeLog (144258 => 144259)


--- trunk/Tools/ChangeLog	2013-02-28 03:31:57 UTC (rev 144258)
+++ trunk/Tools/ChangeLog	2013-02-28 03:51:43 UTC (rev 144259)
@@ -1,3 +1,17 @@
+2013-02-27  Kiran Muppala  <[email protected]>
+
+        Initialize page visibility after creating WebKitTestRunner WebView on Mac
+        https://bugs.webkit.org/show_bug.cgi?id=111025
+
+        Reviewed by Simon Fraser.
+
+        Set page visibility to "visible" after creating WebView to override
+        visibility state inferred from window occlusion notifications on Mac.
+
+        * WebKitTestRunner/TestController.cpp:
+        (WTR::TestController::createWebViewWithOptions): Add call to
+        setVisibilityState.
+
 2013-02-27  Ryosuke Niwa  <[email protected]>
 
         Merge PageLoadingPerfTest into ReplayPerfTest

Modified: trunk/Tools/WebKitTestRunner/TestController.cpp (144258 => 144259)


--- trunk/Tools/WebKitTestRunner/TestController.cpp	2013-02-28 03:31:57 UTC (rev 144258)
+++ trunk/Tools/WebKitTestRunner/TestController.cpp	2013-02-28 03:51:43 UTC (rev 144259)
@@ -482,6 +482,10 @@
         0, // unableToImplementPolicy
     };
     WKPageSetPagePolicyClient(m_mainWebView->page(), &pagePolicyClient);
+
+#if PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 1090
+    setVisibilityState(kWKPageVisibilityStateVisible, true);
+#endif
 }
 
 void TestController::ensureViewSupportsOptions(WKDictionaryRef options)
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to