Bug 1045752 - Change ScopedXErrorHandler assert to warn; r=karlt

This commit is contained in:
Kyle Machulis 2014-07-30 17:30:19 -07:00
Родитель 7e63336e52
Коммит 02ad55af22
1 изменённых файлов: 3 добавлений и 1 удалений

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

@ -59,7 +59,9 @@ ScopedXErrorHandler::ErrorHandler(Display *, XErrorEvent *ev)
ScopedXErrorHandler::ScopedXErrorHandler()
{
MOZ_ASSERT(NS_IsMainThread());
// Off main thread usage is not safe in general, but OMTC GL layers uses this
// with the main thread blocked, which makes it safe.
NS_WARN_IF_FALSE(NS_IsMainThread(), "ScopedXErrorHandler being called off main thread, may cause issues");
// let sXErrorPtr point to this object's mXError object, but don't reset this mXError object!
// think of the case of nested ScopedXErrorHandler's.
mOldXErrorPtr = sXErrorPtr;