Changeset 260675 in webkit


Ignore:
Timestamp:
Apr 24, 2020 3:29:43 PM (4 years ago)
Author:
Chris Dumez
Message:

[iOS] Always run WKTR's WKWebViews at foreground priority
https://bugs.webkit.org/show_bug.cgi?id=210991

Reviewed by Keith Miller.

Always run WKTR's WKWebViews at foreground priority. This makes sure that they don't suspend and
run at foreground priority on iOS, even if those views are not visible on screen.
This is an issue to address flakiness on the bots.

  • WebKitTestRunner/cocoa/TestControllerCocoa.mm:

(WTR::initializeWebViewConfiguration):

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r260668 r260675  
     12020-04-24  Chris Dumez  <cdumez@apple.com>
     2
     3        [iOS] Always run WKTR's WKWebViews at foreground priority
     4        https://bugs.webkit.org/show_bug.cgi?id=210991
     5
     6        Reviewed by Keith Miller.
     7
     8        Always run WKTR's WKWebViews at foreground priority. This makes sure that they don't suspend and
     9        run at foreground priority on iOS, even if those views are not visible on screen.
     10        This is an issue to address flakiness on the bots.
     11
     12        * WebKitTestRunner/cocoa/TestControllerCocoa.mm:
     13        (WTR::initializeWebViewConfiguration):
     14
    1152020-04-24  Kate Cheney  <katherine_cheney@apple.com>
    216
  • trunk/Tools/WebKitTestRunner/cocoa/TestControllerCocoa.mm

    r260169 r260675  
    8787    globalWebViewConfiguration._mediaDataLoadsAutomatically = YES;
    8888    globalWebViewConfiguration.requiresUserActionForMediaPlayback = NO;
     89
     90    // Make sure the view does not get suspended and runs at foreground priority, even if not visible on screen.
     91    globalWebViewConfiguration._alwaysRunsAtForegroundPriority = YES;
    8992#endif
    9093    globalWebViewConfiguration.mediaTypesRequiringUserActionForPlayback = WKAudiovisualMediaTypeNone;
Note: See TracChangeset for help on using the changeset viewer.