Bug 306983

Summary: Check selector rather than build flag to invoke evaluateURL with mainDocumentURL
Product: WebKit Reporter: jlee53
Component: WebKit Misc.Assignee: jlee53
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

jlee53
Reported 2026-02-04 13:38:20 PST
Right now, we are using a compile-time ifdef HAVE(WEBCONTENTRESTRICTIONS_TRANSITIVE_TRUST) to guard calling evaluateURL:mainDocumentURL:completionHandler. We should do a run-time check instead using selectors. This way, we do not have to re-compile WebKit and flip this flag if we want to call evaluateURL:mainDocumentURL:completionHandler. We can just call it if it's already available.
Attachments
Radar WebKit Bug Importer
Comment 1 2026-02-04 13:41:05 PST
jlee53
Comment 2 2026-02-04 13:44:42 PST
EWS
Comment 3 2026-02-06 13:26:29 PST
Committed 306970@main (d5c38f219dfd): <https://commits.webkit.org/306970@main> Reviewed commits have been landed. Closing PR #57883 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.