Bug 1510214 - Set initial-scale=1 to avoid the content elements are placed at unexpected positions. r=eeejay
authorHiroyuki Ikezoe <hikezoe@mozilla.com>
Fri, 30 Nov 2018 17:21:09 +0000
changeset 505455 17a1195583aadff908496e3a1448f4cd6e57089f
parent 505454 7d0fd25ddcebdf8a625d132df691af7f5e138204
child 505456 7725c317d72320510a3c792a60185179a4183632
push id10290
push userffxbld-merge
push dateMon, 03 Dec 2018 16:23:23 +0000
treeherdermozilla-beta@700bed2445e6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerseeejay
bugs1510214
milestone65.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 1510214 - Set initial-scale=1 to avoid the content elements are placed at unexpected positions. r=eeejay Depends on D13172 Differential Revision: https://phabricator.services.mozilla.com/D13375
mobile/android/geckoview/src/androidTest/java/org/mozilla/geckoview/test/AccessibilityTest.kt
--- a/mobile/android/geckoview/src/androidTest/java/org/mozilla/geckoview/test/AccessibilityTest.kt
+++ b/mobile/android/geckoview/src/androidTest/java/org/mozilla/geckoview/test/AccessibilityTest.kt
@@ -500,17 +500,18 @@ class AccessibilityTest : BaseSessionTes
         node.getBoundsInScreen(nodeBounds)
         return screenRect.contains(nodeBounds)
     }
 
     @Ignore // Bug 1506276 - We need to reliably wait for APZC here, and it's not trivial.
     @Test fun testScroll() {
         var nodeId = View.NO_ID
         sessionRule.session.loadString(
-                """<body style="margin: 0;">
+                """<meta name="viewport" content="width=device-width initial-scale=1">
+                <body style="margin: 0;">
                         <div style="height: 100vh;"></div>
                         <button>Hello</button>
                         <p style="margin: 0;">Lorem ipsum dolor sit amet, consectetur adipiscing elit,
                             sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>
                 </body>""",
                 "text/html")
 
         sessionRule.waitUntilCalled(object : EventDelegate {