try: -b do -p linux64 -u all -t none
authorOlli Pettay <Olli.Pettay@helsinki.fi>
Thu, 08 Mar 2018 10:07:06 +0900
changeset 1447785 a49063af17e27128ef21dd8064829edb1588b70c
parent 1446539 aa22c7964b317297f10ca8d58b64202d1c80b6b9
child 1612145 c154fb0daf0a87a4cfb409f8977303fc41445dae
push id257215
push useropettay@mozilla.com
push dateThu, 08 Mar 2018 01:07:40 +0000
treeherdertry@a49063af17e2 [default view] [failures only]
milestone60.0a1
try: -b do -p linux64 -u all -t none
dom/events/EventDispatcher.cpp
--- a/dom/events/EventDispatcher.cpp
+++ b/dom/events/EventDispatcher.cpp
@@ -675,16 +675,18 @@ EventDispatcher::Dispatch(nsISupports* a
   // sure it is initialized!
   // If aTargets is non-null, the event isn't going to be dispatched.
   NS_ENSURE_TRUE(aEvent->mMessage || !aDOMEvent || aTargets,
                  NS_ERROR_DOM_INVALID_STATE_ERR);
 
   // Events shall not be fired while we are in stable state to prevent anything
   // visible from the scripts.
   MOZ_ASSERT(!nsContentUtils::IsInStableOrMetaStableState());
+  NS_ENSURE_TRUE(!nsContentUtils::IsInStableOrMetaStableState(),
+                 NS_ERROR_DOM_INVALID_STATE_ERR);
 
 #ifdef MOZ_TASK_TRACER
   if (MOZ_UNLIKELY(mozilla::tasktracer::IsStartLogging())) {
     nsAutoCString eventType;
     nsAutoString eventTypeU16;
     if (aDOMEvent) {
       aDOMEvent->GetType(eventTypeU16);
     } else {