Bug 1536781, use the same paint suppression delay on mobile and desktop, r=emilio
☠☠ backed out by df1007a56ae9 ☠ ☠
authorOlli Pettay <Olli.Pettay@helsinki.fi>
Mon, 25 Mar 2019 00:20:15 +0000
changeset 527771 a04938b3a757b9141600b2dbc80267fa310c7764
parent 527770 22e8590d95a8c1c326147828bda7bfefe0e598e0
child 527772 113d8feeb0a07e0b726f248df4b64340d3ea9efd
push id2082
push userffxbld-merge
push dateMon, 01 Jul 2019 08:34:18 +0000
treeherdermozilla-release@2fb19d0466d2 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersemilio
bugs1536781
milestone68.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 1536781, use the same paint suppression delay on mobile and desktop, r=emilio Differential Revision: https://phabricator.services.mozilla.com/D24658
layout/base/PresShell.h
testing/web-platform/tests/html/browsers/browsing-the-web/history-traversal/persisted-user-state-restoration/scroll-restoration-fragment-scrolling-samedoc.html
--- a/layout/base/PresShell.h
+++ b/layout/base/PresShell.h
@@ -51,21 +51,17 @@ class EventDispatchingCallback;
 class OverflowChangedTracker;
 
 // A set type for tracking visible frames, for use by the visibility code in
 // PresShell. The set contains nsIFrame* pointers.
 typedef nsTHashtable<nsPtrHashKey<nsIFrame>> VisibleFrames;
 
 // This is actually pref-controlled, but we use this value if we fail
 // to get the pref for any reason.
-#ifdef MOZ_WIDGET_ANDROID
-#  define PAINTLOCK_EVENT_DELAY 250
-#else
-#  define PAINTLOCK_EVENT_DELAY 5
-#endif
+#define PAINTLOCK_EVENT_DELAY 5
 
 class PresShell final : public nsIPresShell,
                         public nsISelectionController,
                         public nsIObserver,
                         public nsSupportsWeakReference {
   typedef layers::FocusTarget FocusTarget;
 
  public:
--- a/testing/web-platform/tests/html/browsers/browsing-the-web/history-traversal/persisted-user-state-restoration/scroll-restoration-fragment-scrolling-samedoc.html
+++ b/testing/web-platform/tests/html/browsers/browsing-the-web/history-traversal/persisted-user-state-restoration/scroll-restoration-fragment-scrolling-samedoc.html
@@ -1,9 +1,10 @@
 <!DOCTYPE html>
+<meta name="viewport" content="width=device-width, initial-scale=1.0">
 <style>
   body {
     height: 2000px;
     width: 2000px;
   }
 
   #fragment {
     position: absolute;