RESOLVED FIXED 211632
Make WKWebViewConfiguration._alwaysRunsAtForegroundPriority an alias for _clientNavigationsRunAtForegroundPriority
https://bugs.webkit.org/show_bug.cgi?id=211632
Summary Make WKWebViewConfiguration._alwaysRunsAtForegroundPriority an alias for _cli...
Chris Dumez
Reported 2020-05-08 10:27:36 PDT
Make WKWebViewConfiguration._alwaysRunsAtForegroundPriority an alias for _clientNavigationsRunAtForegroundPriority. _alwaysRunsAtForegroundPriority is a frequent source of process assertion leaks that get blamed on WebKit. Clients are using this in order to be able to do loads in background views so _clientNavigationsRunAtForegroundPriority should suffice and is not leak prone since the process assertion is released after the navigation has completed.
Attachments
Patch (9.81 KB, patch)
2020-05-08 10:28 PDT, Chris Dumez
no flags
Patch (12.41 KB, patch)
2020-05-08 11:30 PDT, Chris Dumez
no flags
Chris Dumez
Comment 1 2020-05-08 10:28:42 PDT
Alex Christensen
Comment 2 2020-05-08 10:35:00 PDT
Comment on attachment 398873 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=398873&action=review > Source/WebKit/UIProcess/API/Cocoa/WKWebViewConfigurationPrivate.h:94 > +@property (nonatomic, setter=_setAlwaysRunsAtForegroundPriority:) BOOL _alwaysRunsAtForegroundPriority WK_API_AVAILABLE(ios(9_0)); // This is now an alias for _clientNavigationsRunAtForegroundPriority. WK_API_DEPRECATED_WITH_REPLACEMENT
Chris Dumez
Comment 3 2020-05-08 10:48:15 PDT
(In reply to Alex Christensen from comment #2) > Comment on attachment 398873 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=398873&action=review > > > Source/WebKit/UIProcess/API/Cocoa/WKWebViewConfigurationPrivate.h:94 > > +@property (nonatomic, setter=_setAlwaysRunsAtForegroundPriority:) BOOL _alwaysRunsAtForegroundPriority WK_API_AVAILABLE(ios(9_0)); // This is now an alias for _clientNavigationsRunAtForegroundPriority. > > WK_API_DEPRECATED_WITH_REPLACEMENT Isn't it going to cause build failures?
Tim Horton
Comment 4 2020-05-08 11:03:13 PDT
(In reply to Chris Dumez from comment #3) > (In reply to Alex Christensen from comment #2) > > Comment on attachment 398873 [details] > > Patch > > > > View in context: > > https://bugs.webkit.org/attachment.cgi?id=398873&action=review > > > > > Source/WebKit/UIProcess/API/Cocoa/WKWebViewConfigurationPrivate.h:94 > > > +@property (nonatomic, setter=_setAlwaysRunsAtForegroundPriority:) BOOL _alwaysRunsAtForegroundPriority WK_API_AVAILABLE(ios(9_0)); // This is now an alias for _clientNavigationsRunAtForegroundPriority. > > > > WK_API_DEPRECATED_WITH_REPLACEMENT > > Isn't it going to cause build failures? Not in places that matter (only at people's desks, which will then inspire them to fix things).
Chris Dumez
Comment 5 2020-05-08 11:30:59 PDT
Chris Dumez
Comment 6 2020-05-08 13:10:30 PDT
Comment on attachment 398877 [details] Patch Clearing flags on attachment: 398877 Committed r261407: <https://trac.webkit.org/changeset/261407>
Chris Dumez
Comment 7 2020-05-08 13:10:31 PDT
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 8 2020-05-08 13:11:18 PDT
Note You need to log in before you can comment on or make changes to this bug.