Bug 257659

Summary: _serviceControlsEnabled exists on both WKPreferences and WKWebViewConfiguration and only the latter works
Product: WebKit Reporter: Simon Fraser (smfr) <simon.fraser>
Component: WebKit APIAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: akeerthi, simon.fraser, thorton, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Local Build   
Hardware: Unspecified   
OS: Unspecified   

Description Simon Fraser (smfr) 2023-06-02 12:55:00 PDT
I was trying to enable Services Controls in MiniBrowser, and noticed that it existed on both WKPreferences and WKWebViewConfiguration

This works;
  configuration._serviceControlsEnabled = YES;

This does not:
  configuration.preferences._serviceControlsEnabled = YES;
Comment 1 Aditya Keerthi 2023-06-02 15:27:44 PDT
It's also weird that we have both.
Comment 2 Simon Fraser (smfr) 2023-06-03 10:22:04 PDT
The WKWebViewConfiguration one came from
https://commits.webkit.org/169293@main

The WKPreferences one came later from:
https://commits.webkit.org/199010@main
Comment 3 Radar WebKit Bug Importer 2023-06-09 12:55:17 PDT
<rdar://problem/110542643>