HAVE(UI_WK_DOCUMENT_CONTEXT) is only available on iOS and MacCaatalyst, watchOS and tvOS cannot retrieve document contexts.
<rdar://problem/64254698>
Created attachment 401645 [details] Patch
I'm not totally certain about this change, but it strikes me as wrong that requestDocumentContext is used when HAVE(UI_WK_DOCUMENT_CONTEXT) is false.
Comment on attachment 401645 [details] Patch Seems fine to me.
Committed r262917: <https://trac.webkit.org/changeset/262917> All reviewed patches have been landed. Closing bug and clearing flags on attachment 401645 [details].