From 5729940b3cd8719e2c6659032e742cafb13e27ec Mon Sep 17 00:00:00 2001 From: Mason Chang Date: Thu, 5 Mar 2015 08:43:53 -0800 Subject: [PATCH] Bug 1139726 - Assert gfxPlatform::Init is called on the main thread. r=kats --- gfx/thebes/gfxPlatform.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/gfx/thebes/gfxPlatform.cpp b/gfx/thebes/gfxPlatform.cpp index ec22ca22fb37..69d04c1fa910 100644 --- a/gfx/thebes/gfxPlatform.cpp +++ b/gfx/thebes/gfxPlatform.cpp @@ -451,6 +451,7 @@ void RecordingPrefChanged(const char *aPrefName, void *aClosure) void gfxPlatform::Init() { + MOZ_RELEASE_ASSERT(NS_IsMainThread()); if (gEverInitialized) { NS_RUNTIMEABORT("Already started???"); }