Bug 1386915 - Assert when nsLookAndFeel calls GTK off main thread; r=bholley

MozReview-Commit-ID: 9H9dE02bZel
This commit is contained in:
Manish Goregaokar 2017-08-03 13:13:22 -07:00
parent e760ae7c08
commit 89df80e7d0

View File

@ -1074,6 +1074,9 @@ nsLookAndFeel::EnsureInit()
return;
mInitialized = true;
// gtk does non threadsafe refcounting
MOZ_ASSERT(NS_IsMainThread());
#if (MOZ_WIDGET_GTK == 2)
NS_ASSERTION(!mStyle, "already initialized");
// GtkInvisibles come with a refcount that is not floating