Bug 257659 - _serviceControlsEnabled exists on both WKPreferences and WKWebViewConfiguration and only the latter works
Summary: _serviceControlsEnabled exists on both WKPreferences and WKWebViewConfigurati...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit API (show other bugs)
Version: WebKit Local Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-06-02 12:55 PDT by Simon Fraser (smfr)
Modified: 2023-06-09 12:55 PDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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>