Bug 1404570 - Fix ubsan runtime error for nsEventStatus enum in PresShell.cpp. r=smaug
authorArthur Edelstein <arthuredelstein@gmail.com>
Fri, 29 Sep 2017 21:57:00 -0400
changeset 383964 45eb821ac9d518ee65d768c89166c48f6c010769
parent 383963 b80368bd2236368c5d605b9ea91c7ec9ed6137e4
child 383965 9b0b7aea865ee64a92feaaa86ccbf19183f6da23
push id32617
push userkwierso@gmail.com
push dateMon, 02 Oct 2017 23:02:55 +0000
treeherdermozilla-central@8c6b4fd1d769 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssmaug
bugs1404570
milestone58.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1404570 - Fix ubsan runtime error for nsEventStatus enum in PresShell.cpp. r=smaug
layout/base/PresShell.cpp
--- a/layout/base/PresShell.cpp
+++ b/layout/base/PresShell.cpp
@@ -3698,17 +3698,17 @@ FlushLayoutRecursive(nsIDocument* aDocum
 void
 PresShell::DispatchSynthMouseMove(WidgetGUIEvent* aEvent,
                                   bool aFlushOnHoverChange)
 {
   AutoProfilerTracing tracing("Paint", "DispatchSynthMouseMove");
   RestyleManager* restyleManager = mPresContext->RestyleManager();
   uint32_t hoverGenerationBefore =
     restyleManager->GetHoverGeneration();
-  nsEventStatus status;
+  nsEventStatus status = nsEventStatus_eIgnore;
   nsView* targetView = nsView::GetViewFor(aEvent->mWidget);
   if (!targetView)
     return;
   targetView->GetViewManager()->DispatchEvent(aEvent, targetView, &status);
   if (MOZ_UNLIKELY(mIsDestroying)) {
     return;
   }
   if (aFlushOnHoverChange &&