Bug 1351720 Add compiler guards for MOZ_WM_STARTA11Y draft
authorTom Ritter <tom@mozilla.com>
Wed, 29 Mar 2017 11:18:24 -0500
changeset 553231 e824b08dae28fecd7c4abd371a265fd6b1b1fc8d
parent 552574 efb00df6a299073bb2e05e6543690fc773bf5a65
child 621997 decf46065e2ebc266e48c2f6dedc7ab87fd9d5a0
push id51561
push userbmo:tom@mozilla.com
push dateWed, 29 Mar 2017 16:20:31 +0000
bugs1351720
milestone55.0a1
Bug 1351720 Add compiler guards for MOZ_WM_STARTA11Y MozReview-Commit-ID: FE53LsSAF2S
widget/windows/nsWindow.cpp
--- a/widget/windows/nsWindow.cpp
+++ b/widget/windows/nsWindow.cpp
@@ -5053,18 +5053,22 @@ nsWindow::ProcessMessage(UINT msg, WPARA
         cancelQuit->GetData(&abortQuit);
         sCanQuit = abortQuit ? TRI_FALSE : TRI_TRUE;
       }
       *aRetValue = sCanQuit ? TRUE : FALSE;
       result = true;
       break;
 
     case MOZ_WM_STARTA11Y:
+#if defined(ACCESSIBILITY)
       (void*)GetAccessible();
       result = true;
+#else
+      result = false;
+#endif
       break;
 
     case WM_ENDSESSION:
     case MOZ_WM_APP_QUIT:
       if (msg == MOZ_WM_APP_QUIT || (wParam == TRUE && sCanQuit == TRI_TRUE))
       {
         // Let's fake a shutdown sequence without actually closing windows etc.
         // to avoid Windows killing us in the middle. A proper shutdown would