Bug 1360946 - Consider a SetDocShellIsActive message a 'pending input event' so it can interrupt reflow. r=bz
authorMike Conley <mconley@mozilla.com>
Fri, 26 May 2017 18:27:45 -0400
changeset 363338 73eefb81f8e15845cf63cd809047c80b7ac8e3f5
parent 363337 e5fe50da0571a67e4ad62aeb9e13013eba5369c8
child 363339 a305f9e66fa5b6faec4804ace67bb69f3c5de2d3
push id91290
push userarchaeopteryx@coole-files.de
push dateSat, 10 Jun 2017 09:21:29 +0000
treeherdermozilla-inbound@b7e57100a79c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbz
bugs1360946
milestone55.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 1360946 - Consider a SetDocShellIsActive message a 'pending input event' so it can interrupt reflow. r=bz MozReview-Commit-ID: 9tV1MFAtim4
widget/PuppetWidget.cpp
--- a/widget/PuppetWidget.cpp
+++ b/widget/PuppetWidget.cpp
@@ -1429,16 +1429,17 @@ PuppetWidget::HasPendingInputEvent()
           case mozilla::dom::PBrowser::Msg_RealKeyEvent__ID:
           case mozilla::dom::PBrowser::Msg_MouseWheelEvent__ID:
           case mozilla::dom::PBrowser::Msg_RealTouchEvent__ID:
           case mozilla::dom::PBrowser::Msg_RealTouchMoveEvent__ID:
           case mozilla::dom::PBrowser::Msg_RealDragEvent__ID:
           case mozilla::dom::PBrowser::Msg_UpdateDimensions__ID:
           case mozilla::dom::PBrowser::Msg_MouseEvent__ID:
           case mozilla::dom::PBrowser::Msg_KeyEvent__ID:
+          case mozilla::dom::PBrowser::Msg_SetDocShellIsActive__ID:
             ret = true;
             return false;  // Stop peeking.
         }
       }
       return true;
     }
   );