diff --git a/docshell/base/nsWebShell.cpp b/docshell/base/nsWebShell.cpp index 1163fdbe54c9..aa67a9af5da1 100644 --- a/docshell/base/nsWebShell.cpp +++ b/docshell/base/nsWebShell.cpp @@ -551,7 +551,7 @@ nsWebShell::GetEventQueue(nsIEventQueue **aQueue) NS_ENSURE_ARG_POINTER(aQueue); *aQueue = 0; - nsCOMPtr eventService(do_GetService(kEventQueueServiceCID)); + nsCOMPtr eventService(do_GetService(NS_EVENTQUEUESERVICE_CONTRACTID)); if (eventService) eventService->GetThreadEventQueue(mThread, aQueue); return *aQueue ? NS_OK : NS_ERROR_FAILURE;