Bug 213076

Summary: WebKit: Guard requestDocumentContext with HAVE(UI_WK_DOCUMENT_CONTEXT)
Product: WebKit Reporter: Jonathan Bedard <jbedard>
Component: PlatformAssignee: Jonathan Bedard <jbedard>
Status: RESOLVED FIXED    
Severity: Normal CC: aestes, ap, dbates, thorton, webkit-bug-importer, wenson_hsieh
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=212718
Attachments:
Description Flags
Patch none

Description Jonathan Bedard 2020-06-11 08:03:55 PDT
HAVE(UI_WK_DOCUMENT_CONTEXT) is only available on iOS and MacCaatalyst, watchOS and tvOS cannot retrieve document contexts.
Comment 1 Radar WebKit Bug Importer 2020-06-11 08:05:22 PDT
<rdar://problem/64254698>
Comment 2 Jonathan Bedard 2020-06-11 08:10:01 PDT
Created attachment 401645 [details]
Patch
Comment 3 Jonathan Bedard 2020-06-11 08:11:45 PDT
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 4 Tim Horton 2020-06-11 10:46:35 PDT
Comment on attachment 401645 [details]
Patch

Seems fine to me.
Comment 5 EWS 2020-06-11 12:42:03 PDT
Committed r262917: <https://trac.webkit.org/changeset/262917>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 401645 [details].