bug 1331320 install X11 error handler through Xlib in plugin process as GTK2 does not use g_error r=glandium

MozReview-Commit-ID: 9Io2fABc2hI
This commit is contained in:
Karl Tomlinson
2017-01-13 20:50:58 +13:00
parent 875f054fff
commit e7e822508a
4 changed files with 10 additions and 5 deletions

View File

@@ -24,6 +24,7 @@
#include "nsXULAppAPI.h"
#ifdef MOZ_X11
# include "nsX11ErrorHandler.h"
# include "mozilla/X11Util.h"
#endif
#include "mozilla/ipc/ProcessChild.h"
@@ -593,7 +594,7 @@ PluginModuleChild::InitGraphics()
#endif
#ifdef MOZ_X11
// Do this after initializing GDK, or GDK will install its own handler.
XRE_InstallX11ErrorHandler();
InstallX11ErrorHandler();
#endif
return true;
}