Bug 1569706 - Update incorrect assertion. r=emilio

We can end up in here from a style worker thread.  But that's safe since
we only read data from the FontFaceSet, and the main thread is blocked
so writes can't happen underneath us.

Differential Revision: https://phabricator.services.mozilla.com/D44589

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Cameron McCormack 2019-09-08 23:41:54 +00:00
Родитель 2973dc2810
Коммит 1ce893603a
1 изменённых файлов: 2 добавлений и 3 удалений

Просмотреть файл

@ -1204,9 +1204,8 @@ RawServoFontFaceRule* FontFaceSet::FindRuleForUserFontEntry(
nsresult FontFaceSet::LogMessage(gfxUserFontEntry* aUserFontEntry,
const char* aMessage, uint32_t aFlags,
nsresult aStatus) {
MOZ_ASSERT(NS_IsMainThread(),
"LogMessage only works on the main thread, due to the Servo_XXX "
"CSSOM calls it makes");
MOZ_ASSERT(NS_IsMainThread() ||
ServoStyleSet::IsCurrentThreadInServoTraversal());
nsCOMPtr<nsIConsoleService> console(
do_GetService(NS_CONSOLESERVICE_CONTRACTID));