From db633c912b77ecf6a672b810b02e8e800be6cd9b Mon Sep 17 00:00:00 2001 From: Jim Mathies Date: Thu, 17 Jul 2014 13:17:14 -0500 Subject: [PATCH] Bug 1011685 - Call ipc InitUIThread from MetroAppShell Init. Follow up for bug 1009590. r=me --- widget/windows/winrt/MetroAppShell.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/widget/windows/winrt/MetroAppShell.cpp b/widget/windows/winrt/MetroAppShell.cpp index 3ce2daa6c809..3666b0fddbe9 100644 --- a/widget/windows/winrt/MetroAppShell.cpp +++ b/widget/windows/winrt/MetroAppShell.cpp @@ -8,6 +8,7 @@ #include "mozilla/AutoRestore.h" #include "mozilla/TimeStamp.h" #include "mozilla/widget/AudioSession.h" +#include "mozilla/ipc/WindowsMessageLoop.h" #include "nsIObserverService.h" #include "nsIAppStartup.h" @@ -73,6 +74,8 @@ MetroAppShell::Init() WNDCLASSW wc; HINSTANCE module = GetModuleHandle(nullptr); + mozilla::ipc::windows::InitUIThread(); + const char16_t *const kWindowClass = L"nsAppShell:EventWindowClass"; if (!GetClassInfoW(module, kWindowClass, &wc)) { wc.style = 0;