WKWebView.evaluateJavaScript should run at foreground priority when app is foreground.
Created attachment 399030 [details] Patch
Created attachment 399032 [details] Patch
Created attachment 399034 [details] Patch
Comment on attachment 399034 [details] Patch Seems like a better principle is inheriting this from what triggered the need to run script rather than querying the state at the moment the WebKit API is called. This seems like a shortcut that might get it right, but might get it wrong.
Committed r261489: <https://trac.webkit.org/changeset/261489> All reviewed patches have been landed. Closing bug and clearing flags on attachment 399034 [details].
<rdar://problem/63101371>