Closed Bug 1901555 Opened 3 months ago Closed 3 months ago

GetFontFileName in ScaledFontDWrite.cpp causes performance issue with USER_RESTRICTED

Categories

(Core :: Security: Process Sandboxing, enhancement, P1)

All
Windows
enhancement

Tracking

()

RESOLVED FIXED
129 Branch
Tracking Status
firefox129 --- fixed

People

(Reporter: bobowen, Assigned: bobowen)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

GetFontFileName calls GetFileAttributesW at the end of its checks, which with USER_RESTRICTED access token level causes a sync call to the parent process.

With a USER_RESTRICTED access token level this requires a sync call to the
parent process via the sandbox's shared memory IPC.
This patch also caches the font file name as GetFontFileName, still requires
a number of calls into DirectWrite.

Pushed by bobowencode@gmail.com: https://hg.mozilla.org/integration/autoland/rev/1e57758d7284 Remove file attribute check in GetFontFileName. r=lsalzman
Status: ASSIGNED → RESOLVED
Closed: 3 months ago
Resolution: --- → FIXED
Target Milestone: --- → 129 Branch
Regressions: 1905863
No longer regressions: 1905863
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: