Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(543)

Issue 333773005: Intercept the user32!SystemParametersInfoW API in the win32k user gdi lockdown mode (Closed)

Created:
6 years, 6 months ago by ananta
Modified:
4 years, 9 months ago
CC:
chromium-reviews
Project:
chromium
Visibility:
Public.

Description

Intercept the user32!SystemParametersInfoW API in the win32k user gdi lockdown mode This API fails for the font related values queried by webkit like SPI_GETFONTSMOOTHING and SPI_GETFONTSMOOTHINGTYPE. This eventually causes skia to default to no antialiasing and no cleartype which causes fonts to appear blurry and distorted. Our solution for now is to fake the return values for SPI_GETFONTSMOOTHING to smooth and SPI_GETFONTSMOOTHINGTYPE to cleartype. I added a TODO in there to look into an IPC based approach in the near future if this causes problems. BUG=365160

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+66 lines, -0 lines) Patch
M sandbox/win/src/interceptors.h View 1 chunk +1 line, -0 lines 0 comments Download
M sandbox/win/src/interceptors_64.h View 1 chunk +4 lines, -0 lines 0 comments Download
M sandbox/win/src/interceptors_64.cc View 1 chunk +9 lines, -0 lines 0 comments Download
M sandbox/win/src/ipc_tags.h View 1 chunk +1 line, -0 lines 0 comments Download
M sandbox/win/src/process_mitigations_win32k_dispatcher.cc View 1 chunk +8 lines, -0 lines 0 comments Download
M sandbox/win/src/process_mitigations_win32k_interception.h View 2 chunks +11 lines, -0 lines 0 comments Download
M sandbox/win/src/process_mitigations_win32k_interception.cc View 1 chunk +29 lines, -0 lines 0 comments Download
M sandbox/win/src/process_mitigations_win32k_policy.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M sandbox/win/src/sandbox_policy_base.cc View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
ananta
6 years, 6 months ago (2014-06-13 01:24:58 UTC) #1
jschuh
Awesome job tracking this down, but I don't think the call hooking is necessary. Given ...
6 years, 6 months ago (2014-06-13 13:09:03 UTC) #2
ananta
On 2014/06/13 13:09:03, Justin Schuh wrote: > Awesome job tracking this down, but I don't ...
6 years, 6 months ago (2014-06-13 14:57:11 UTC) #3
rvargas (doing something else)
On 2014/06/13 14:57:11, ananta wrote: > On 2014/06/13 13:09:03, Justin Schuh wrote: > > Awesome ...
6 years, 6 months ago (2014-06-13 18:18:49 UTC) #4
jschuh
I have a CL up here for the alternative change in blink: https://codereview.chromium.org/331843004/ Broadly speaking, ...
6 years, 6 months ago (2014-06-13 19:13:34 UTC) #5
jschuh
6 years, 6 months ago (2014-06-13 20:04:20 UTC) #6
Okay, the blink CL is reviewed and in the CQ. So, that should resolve this.

Powered by Google App Engine
This is Rietveld 408576698