https://bugs.webkit.org/show_bug.cgi?id=107494, added window occlusion detection support to WKView, which caused some javascript timer related layout tests to fail using WebKitTestRunner. I submitted a initial fix that just initializes the page visibility in WebKitTestRunner, https://bugs.webkit.org/show_bug.cgi?id=111025, but that still opens the door for other tests to fail if they depend on the view to know it is visible. Hence, adding a private API to disable window occlusion detection will allow a more robust fix for WebKitTestRunner issues with window occlusion.
<rdar://problem/13211598>
Created attachment 190803 [details] Patch
Comment on attachment 190803 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=190803&action=review > Source/WebKit2/UIProcess/API/mac/WKViewPrivate.h:63 > +- (void)disableWindowOcclusionDetection; > +- (void)enableWindowOcclusionDetection; Normally we'd do this like setWindowOcclustionDetectionEnabled:(BOOL)
Created attachment 190808 [details] Patch
(In reply to comment #3) > (From update of attachment 190803 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=190803&action=review > > > Source/WebKit2/UIProcess/API/mac/WKViewPrivate.h:63 > > +- (void)disableWindowOcclusionDetection; > > +- (void)enableWindowOcclusionDetection; > > Normally we'd do this like setWindowOcclustionDetectionEnabled:(BOOL) Got it. I replaced the two methods with a single setter.
Comment on attachment 190808 [details] Patch Clearing flags on attachment: 190808 Committed r144389: <http://trac.webkit.org/changeset/144389>
All reviewed patches have been landed. Closing bug.