Bug 712130 - Add reftest in case autofocus element is seen after PresShell init. r?bz draft
authordecltype <mozilla@decltype.org>
Wed, 10 Jan 2018 19:07:21 +0100
changeset 719684 9aa8612ac830dc30265674a7e6efb2b9719a7cd6
parent 719683 186cd799a0513b9476897a71c6409ef4ede294cc
child 719685 7a3996898f2c4e3b36721a83bf7851167a379df2
child 719878 172a24d61e257d236e09582a5e807f3d9de87d67
push id95337
push userbmo:mozilla@decltype.org
push dateFri, 12 Jan 2018 16:22:10 +0000
reviewersbz
bugs712130
milestone59.0a1
Bug 712130 - Add reftest in case autofocus element is seen after PresShell init. r?bz MozReview-Commit-ID: 75IKOqiqBhL
layout/reftests/bugs/712130-2-ref.html
layout/reftests/bugs/712130-2.html
layout/reftests/bugs/reftest.list
new file mode 100644
--- /dev/null
+++ b/layout/reftests/bugs/712130-2-ref.html
@@ -0,0 +1,3 @@
+<!DOCTYPE html>
+<html class="reftest-wait">
+<input type="text" autofocus="" onfocus="document.documentElement.removeAttribute('class')">
new file mode 100644
--- /dev/null
+++ b/layout/reftests/bugs/712130-2.html
@@ -0,0 +1,4 @@
+<!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')">
--- a/layout/reftests/bugs/reftest.list
+++ b/layout/reftests/bugs/reftest.list
@@ -1703,16 +1703,17 @@ skip-if(azureSkiaGL) == 670442-1.html 67
 == 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
+needs-focus == 712130-2.html 712130-2-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