Make it work with USE_GECKO_COMPOSITOR_THREAD