Bug 1363829 P10 Make image map reftest wait for first paint before triggering focus/blur. r=dbaron
authorBen Kelly <ben@wanderview.com>
Wed, 31 May 2017 17:13:19 -0700
changeset 361746 cd8ae8487d00ef620b705980c77c8c793e0a8653
parent 361745 a70379a2937c31f7fe612318498e49e5a18b5075
child 361747 833f4fe141821688ec911643098ca936d31960e1
push id31940
push usercbook@mozilla.com
push dateThu, 01 Jun 2017 11:51:11 +0000
treeherdermozilla-central@0bcea6bac179 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdbaron
bugs1363829
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 1363829 P10 Make image map reftest wait for first paint before triggering focus/blur. r=dbaron
layout/reftests/bugs/703186-1-ref.html
layout/reftests/bugs/703186-1.html
layout/reftests/bugs/703186-2-ref.html
layout/reftests/bugs/703186-2.html
--- a/layout/reftests/bugs/703186-1-ref.html
+++ b/layout/reftests/bugs/703186-1-ref.html
@@ -9,15 +9,15 @@
       }
 
       function finish()
       {
         document.documentElement.removeAttribute("class");
       }
     </script>
   </head>
-  <body onload="setTimeout(init, 0);">
+  <body onload="requestAnimationFrame(_ => setTimeout(init, 0));">
     <img src="100x80-white-rect-top-right.png" usemap="#map">
     <map name="map">
       <area id="link" shape="rect" coords="10,10,30,30" href="about:blank">
     </map>
   </body>
 </html>
--- a/layout/reftests/bugs/703186-1.html
+++ b/layout/reftests/bugs/703186-1.html
@@ -11,15 +11,15 @@
       }
 
       function finish()
       {
         document.documentElement.removeAttribute("class");
       }
     </script>
   </head>
-  <body onload="setTimeout(init, 0);">
+  <body onload="requestAnimationFrame(_ => setTimeout(init, 0));">
     <img src="100x80-white-rect-top-right.png" usemap="#map">
     <map name="map">
       <area id="link" shape="rect" coords="10,10,30,30" href="about:blank">
     </map>
   </body>
 </html>
--- a/layout/reftests/bugs/703186-2-ref.html
+++ b/layout/reftests/bugs/703186-2-ref.html
@@ -15,15 +15,15 @@
       }
 
       function finish()
       {
         document.documentElement.removeAttribute("class");
       }
     </script>
   </head>
-  <body onload="setTimeout(init, 0);">
+  <body onload="requestAnimationFrame(_ => setTimeout(init, 0));">
     <img src="100x80-white-rect-top-right.png" usemap="#map">
     <map name="map">
       <area id="link" shape="rect" coords="10,10,30,30" href="about:blank">
     </map>
   </body>
 </html>
--- a/layout/reftests/bugs/703186-2.html
+++ b/layout/reftests/bugs/703186-2.html
@@ -17,15 +17,15 @@
       }
 
       function finish()
       {
         document.documentElement.removeAttribute("class");
       }
     </script>
   </head>
-  <body onload="setTimeout(init, 0);">
+  <body onload="requestAnimationFrame(_ => setTimeout(init, 0));">
     <img src="100x80-white-rect-top-right.png" usemap="#map">
     <map name="map">
       <area id="link" shape="rect" coords="10,10,30,30" href="about:blank">
     </map>
   </body>
 </html>