| Summary: | Preferences that read from NSUserDefaults need to be initialied from platformInitializeStore() | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Simon Fraser (smfr) <simon.fraser> | ||||
| Component: | WebKit Misc. | Assignee: | Simon Fraser (smfr) <simon.fraser> | ||||
| Status: | ASSIGNED --- | ||||||
| Severity: | Normal | CC: | commit-queue, sam, simon.fraser, webkit-bug-importer | ||||
| Priority: | P2 | Keywords: | InRadar | ||||
| Version: | WebKit Nightly Build | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| See Also: | https://bugs.webkit.org/show_bug.cgi?id=234456 | ||||||
| Bug Depends on: | 234620 | ||||||
| Bug Blocks: | |||||||
| Attachments: |
|
||||||
|
Description
Simon Fraser (smfr)
2021-12-19 11:38:23 PST
Created attachment 447553 [details]
Patch
Comment on attachment 447553 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=447553&action=review > Source/WebKit/UIProcess/Cocoa/WebPreferencesCocoa.mm:143 > +void WebPreferences::initializePlatformDependentPreferences() I don't think platform dependent is the right name, since everything in this file is platform dependent. Perhaps platformInitializeProcessStateDependentPreferences()? > Source/WebKit/UIProcess/Cocoa/WebPreferencesCocoa.mm:154 > + m_store.setBoolValueForKey(WebPreferencesKey::scrollAnimatorEnabledKey(), [[NSUserDefaults standardUserDefaults] boolForKey:@"NSScrollAnimationEnabled"]); I think you want to wrap this in #if PLATFORM(MAC)? Re-opened since this is blocked by bug 234620 |