From 252de127d4ea7c330a1ef6d5851fb003727b51d5 Mon Sep 17 00:00:00 2001 From: Neil Deakin Date: Thu, 29 Apr 2010 10:14:05 -0400 Subject: [PATCH] Bug 554635, change default tabindex on object elements to 0, so that child documents can be focused, r=jonas --- .../html/content/src/nsHTMLObjectElement.cpp | 2 +- content/html/content/test/Makefile.in | 1 + content/html/content/test/test_bug556645.html | 50 +++++++++++++++++++ 3 files changed, 52 insertions(+), 1 deletion(-) create mode 100644 content/html/content/test/test_bug556645.html diff --git a/content/html/content/src/nsHTMLObjectElement.cpp b/content/html/content/src/nsHTMLObjectElement.cpp index 5043bdf1467d..33ded82c01fb 100644 --- a/content/html/content/src/nsHTMLObjectElement.cpp +++ b/content/html/content/src/nsHTMLObjectElement.cpp @@ -360,7 +360,7 @@ NS_IMPL_STRING_ATTR(nsHTMLObjectElement, Height, height) NS_IMPL_INT_ATTR(nsHTMLObjectElement, Hspace, hspace) NS_IMPL_STRING_ATTR(nsHTMLObjectElement, Name, name) NS_IMPL_STRING_ATTR(nsHTMLObjectElement, Standby, standby) -NS_IMPL_INT_ATTR(nsHTMLObjectElement, TabIndex, tabindex) +NS_IMPL_INT_ATTR_DEFAULT_VALUE(nsHTMLObjectElement, TabIndex, tabindex, 0) NS_IMPL_STRING_ATTR(nsHTMLObjectElement, Type, type) NS_IMPL_STRING_ATTR(nsHTMLObjectElement, UseMap, usemap) NS_IMPL_INT_ATTR(nsHTMLObjectElement, Vspace, vspace) diff --git a/content/html/content/test/Makefile.in b/content/html/content/test/Makefile.in index fc5621fa25fa..e950c286362f 100644 --- a/content/html/content/test/Makefile.in +++ b/content/html/content/test/Makefile.in @@ -158,6 +158,7 @@ _TEST_FILES = test_bug589.html \ test_bug536891.html \ test_bug536895.html \ test_bug458037.xhtml \ + test_bug556645.html \ test_bug559284.html \ test_bug551670.html \ test_bug346485.html \ diff --git a/content/html/content/test/test_bug556645.html b/content/html/content/test/test_bug556645.html new file mode 100644 index 000000000000..8fc40a9ad5fa --- /dev/null +++ b/content/html/content/test/test_bug556645.html @@ -0,0 +1,50 @@ + + + Test for Bug 556645 + + + + + + + + + + + + +