Skip to content
Snippets Groups Projects
Commit c8435823 authored by Jonathan Kew's avatar Jonathan Kew
Browse files

Bug 1878199 - patch 2 - If the FontFaceImpl has a user-font entry, hold its...

Bug 1878199 - patch 2 - If the FontFaceImpl has a user-font entry, hold its lock during Add/Remove font-set operations.  a=dmeehan

This should fix the intermittently-reported race here, by ensuring that access into
the FontFaceImpl from GetUserFontSets(), called by the main thread, cannot race with
changes being made by the AddFontSet()/RemoveFontSet() methods.

(If the FontFaceImpl doesn't have an mUserFontEntry yet, then these methods don't
need to lock, as only the owning thread will be touching it.)

Original Revision: https://phabricator.services.mozilla.com/D207296

Differential Revision: https://phabricator.services.mozilla.com/D208098
parent 6cecb0e3
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment