Bug 712130 - Add reftest to ensure the first autofocus elements gets picked. r?bz draft
authordecltype <mozilla@decltype.org>
Wed, 10 Jan 2018 00:40:13 +0100
changeset 719672 2548f47960ee719b34f87fcb989559c277988425
parent 719593 d2edd256c3aadb1cea48da0c8f62f725bd53cb76
child 719673 19ca616fcf6dd0874548014ff2f1734fe879bb8d
push id95330
push userbmo:mozilla@decltype.org
push dateFri, 12 Jan 2018 16:00:45 +0000
reviewersbz
bugs712130
milestone59.0a1
Bug 712130 - Add reftest to ensure the first autofocus elements gets picked. r?bz MozReview-Commit-ID: 6UAUbqwVhTm
layout/reftests/bugs/712130-1-ref.html
layout/reftests/bugs/712130-1.html
layout/reftests/bugs/reftest.list
new file mode 100644
--- /dev/null
+++ b/layout/reftests/bugs/712130-1-ref.html
@@ -0,0 +1,5 @@
+<!DOCTYPE html>
+<html class="reftest-wait">
+<link rel="stylesheet" href="nothing"><!-- Empty stylesheet to delay PresShell init -->
+<input type="text" autofocus="" onfocus="document.documentElement.removeAttribute('class')">
+<input type="text">
new file mode 100644
--- /dev/null
+++ b/layout/reftests/bugs/712130-1.html
@@ -0,0 +1,5 @@
+<!DOCTYPE html>
+<html class="reftest-wait">
+<link rel="stylesheet" href="nothing"><!-- Empty stylesheet to delay PresShell init -->
+<input type="text" autofocus="" onfocus="document.documentElement.removeAttribute('class')">
+<input type="text" autofocus="" onfocus="document.documentElement.removeAttribute('class')">
--- a/layout/reftests/bugs/reftest.list
+++ b/layout/reftests/bugs/reftest.list
@@ -1702,16 +1702,17 @@ skip-if(azureSkiaGL) == 670442-1.html 67
 != 691087-1.html 691087-1-ref.html
 == 691571-1.html 691571-1-ref.html
 fuzzy-if(skiaContent,1,200) == 696307-1.html 696307-1-ref.html
 fuzzy-if(skiaContent,1,550) == 696739-1.html 696739-1-ref.html
 needs-focus == 703186-1.html 703186-1-ref.html
 needs-focus == 703186-2.html 703186-2-ref.html
 needs-focus != 703186-1.html 703186-2.html
 == 711359-1.html 711359-1-ref.html
+needs-focus == 712130-1.html 712130-1-ref.html
 == 712849-1.html 712849-1-ref.html
 == 713856-static.html  713856-ref.html
 == 713856-dynamic.html 713856-ref.html
 == 714519-1-as.html 714519-1-ref.html
 == 714519-1-q.html 714519-1-ref.html
 == 714519-2-as.html 714519-2-ref.html
 == 714519-2-q.html 714519-2-ref.html
 fuzzy-if(true,1,21) fuzzy-if(d2d,71,173) fuzzy-if(cocoaWidget,1,170) == 718521.html 718521-ref.html # bug 773482