We need to broker access to CGDisplayUsesInvertedPolarity so that the WebContent process doesn't need to use it. We already pass other screen-related values as part of ScreenProperties. We just need to add 'inverted color' status to this as well to avoid interacting with the NSDisplay in the WebContent process.
<rdar://problem/39215702>
This is also happening for CGDisplayUsesForceToGray.
Created attachment 337309 [details] Patch
Created attachment 337314 [details] Patch
Comment on attachment 337314 [details] Patch Attachment 337314 [details] did not pass mac-wk2-ews (mac-wk2): Output: http://webkit-queues.webkit.org/results/7220796 Number of test failures exceeded the failure limit.
Created attachment 337320 [details] Archive of layout-test-results from ews106 for mac-sierra-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews106 Port: mac-sierra-wk2 Platform: Mac OS X 10.12.6
Created attachment 337331 [details] Patch
Comment on attachment 337331 [details] Patch Attachment 337331 [details] did not pass mac-wk2-ews (mac-wk2): Output: http://webkit-queues.webkit.org/results/7222220 Number of test failures exceeded the failure limit.
Created attachment 337339 [details] Archive of layout-test-results from ews106 for mac-sierra-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews106 Port: mac-sierra-wk2 Platform: Mac OS X 10.12.6
Created attachment 337340 [details] Patch for landing
Committed r230323: <https://trac.webkit.org/changeset/230323>
Follow-up fix landed in r230331: <https://trac.webkit.org/changeset/230331/webkit>
Another follow-up landed in r230352: <https://trac.webkit.org/changeset/230352/webkit>