Bug 213050

Summary: [Cocoa] Return early from preference change notification handler if there is no observer
Product: WebKit Reporter: Per Arne Vollan <pvollan>
Component: WebKit Misc.Assignee: Per Arne Vollan <pvollan>
Status: RESOLVED FIXED    
Severity: Normal CC: bfulgham, darin, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

Description Per Arne Vollan 2020-06-10 14:47:06 PDT
Currently, the observer member is checked inside the loop iterating over all the keys, but this check should be moved outside of the loop.
Comment 1 Per Arne Vollan 2020-06-10 14:49:03 PDT
Created attachment 401586 [details]
Patch
Comment 2 Per Arne Vollan 2020-06-10 15:02:39 PDT
Comment on attachment 401586 [details]
Patch

Thanks for reviewing!
Comment 3 EWS 2020-06-10 15:34:39 PDT
Committed r262865: <https://trac.webkit.org/changeset/262865>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 401586 [details].
Comment 4 Radar WebKit Bug Importer 2020-06-10 15:35:33 PDT
<rdar://problem/64227791>