diff --git a/widget/gtk/nsLookAndFeel.cpp b/widget/gtk/nsLookAndFeel.cpp index d3f6440e776f..cd8a23eb4f34 100644 --- a/widget/gtk/nsLookAndFeel.cpp +++ b/widget/gtk/nsLookAndFeel.cpp @@ -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