From 6908ac2ac3a14b7b06d86188d1dd2ad6c26831f8 Mon Sep 17 00:00:00 2001 From: Boris Zbarsky Date: Mon, 30 Apr 2012 21:57:16 -0400 Subject: [PATCH] Bug 748803. Don't autofocus the Try Again button in error pages if the error page is not a toplevel page. r=mounir --- docshell/resources/content/netError.xhtml | 17 ++++++++++++++++- layout/reftests/bugs/748803-1-ref.html | 8 ++++++++ layout/reftests/bugs/748803-1.html | 8 ++++++++ layout/reftests/bugs/reftest.list | 1 + 4 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 layout/reftests/bugs/748803-1-ref.html create mode 100644 layout/reftests/bugs/748803-1.html diff --git a/docshell/resources/content/netError.xhtml b/docshell/resources/content/netError.xhtml index 32acfe33c5c..c21d6eed91b 100644 --- a/docshell/resources/content/netError.xhtml +++ b/docshell/resources/content/netError.xhtml @@ -394,7 +394,22 @@ - + + diff --git a/layout/reftests/bugs/748803-1-ref.html b/layout/reftests/bugs/748803-1-ref.html new file mode 100644 index 00000000000..6dc51982997 --- /dev/null +++ b/layout/reftests/bugs/748803-1-ref.html @@ -0,0 +1,8 @@ + + + + +
+ + + diff --git a/layout/reftests/bugs/748803-1.html b/layout/reftests/bugs/748803-1.html new file mode 100644 index 00000000000..c20235dfc5c --- /dev/null +++ b/layout/reftests/bugs/748803-1.html @@ -0,0 +1,8 @@ + + + + +
+ + + diff --git a/layout/reftests/bugs/reftest.list b/layout/reftests/bugs/reftest.list index 5fef0f15d8c..9838b72f12d 100644 --- a/layout/reftests/bugs/reftest.list +++ b/layout/reftests/bugs/reftest.list @@ -1700,3 +1700,4 @@ fuzzy-if(d2d,1,19) fuzzy-if(cocoaWidget,1,170) == 718521.html 718521-ref.html needs-focus == 731726-1.html 731726-1-ref.html == 735481-1.html 735481-1-ref.html == 745934-1.html 745934-1-ref.html +== 748803-1.html 748803-1-ref.html