Bug 215523

Summary: Live Web Content processes do not respect accent color if dynamically changed to "multicolor"
Product: WebKit Reporter: Tim Horton <thorton>
Component: New BugsAssignee: Tim Horton <thorton>
Status: RESOLVED FIXED    
Severity: Normal CC: bfulgham, ggaren, megan_gardner, pvollan, webkit-bug-importer, wenson_hsieh
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch
none
test logging
none
test logging
none
Patch none

Description Tim Horton 2020-08-14 14:36:27 PDT
Live Web Content processes do not respect accent color if dynamically changed to "multicolor"
Comment 1 Tim Horton 2020-08-14 14:36:38 PDT
Created attachment 406622 [details]
Patch
Comment 2 Tim Horton 2020-08-14 14:36:40 PDT
<rdar://problem/63941133>
Comment 3 Wenson Hsieh 2020-08-14 14:39:58 PDT
Comment on attachment 406622 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=406622&action=review

> Source/WebKit/UIProcess/Cocoa/PreferenceObserver.mm:80
> +            if (!a && !b)
> +                return true;
> +            return a && [a isEqual:b];

Nit - I have an ever-so-slight preference for `a == b || [a isEqual:b]`, instead of having a separate branch.
Comment 4 Tim Horton 2020-08-14 15:21:48 PDT
Per Arne kindly pointed out that he added a testing mechanism for this, so I'm writing a test.
Comment 5 Tim Horton 2020-08-14 16:19:01 PDT
Created attachment 406633 [details]
Patch
Comment 6 Tim Horton 2020-08-14 17:58:44 PDT
Oh dear, the new test passes for me but not the bots.
Comment 7 Tim Horton 2020-08-14 18:12:47 PDT
Created attachment 406640 [details]
test logging
Comment 8 Tim Horton 2020-08-15 14:47:19 PDT
Created attachment 406676 [details]
test logging
Comment 9 Tim Horton 2020-08-15 15:11:20 PDT
Created attachment 406677 [details]
Patch
Comment 10 EWS 2020-08-15 15:53:45 PDT
Committed r265740: <https://trac.webkit.org/changeset/265740>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 406677 [details].