diff --git a/content/html/content/src/nsHTMLObjectElement.cpp b/content/html/content/src/nsHTMLObjectElement.cpp index 37d2cbc5244..a45e4de3035 100644 --- a/content/html/content/src/nsHTMLObjectElement.cpp +++ b/content/html/content/src/nsHTMLObjectElement.cpp @@ -328,8 +328,8 @@ nsHTMLObjectElement::IsFocusableForTabIndex() return false; } - return Type() == eType_Plugin || IsEditableRoot() || - (Type() == eType_Document && nsContentUtils::IsSubDocumentTabbable(this)); + return IsEditableRoot() || (Type() == eType_Document && + nsContentUtils::IsSubDocumentTabbable(this)); } bool @@ -341,7 +341,7 @@ nsHTMLObjectElement::IsHTMLFocusable(bool aWithMouse, nsIDocument *doc = GetCurrentDoc(); if (!doc || doc->HasFlag(NODE_IS_EDITABLE)) { if (aTabIndex) { - GetIntAttr(nsGkAtoms::tabindex, -1, aTabIndex); + GetTabIndex(aTabIndex); } *aIsFocusable = false; @@ -356,7 +356,7 @@ nsHTMLObjectElement::IsHTMLFocusable(bool aWithMouse, // Has plugin content: let the plugin decide what to do in terms of // internal focus from mouse clicks if (aTabIndex) { - GetIntAttr(nsGkAtoms::tabindex, 0, aTabIndex); + GetTabIndex(aTabIndex); } *aIsFocusable = true; diff --git a/content/html/content/test/Makefile.in b/content/html/content/test/Makefile.in index d540c2efca9..6a9545e3be6 100644 --- a/content/html/content/test/Makefile.in +++ b/content/html/content/test/Makefile.in @@ -296,6 +296,7 @@ _TEST_FILES = \ test_ol_attributes_reflection.html \ test_bug651956.html \ test_bug694503.html \ + test_object_plugin_nav.html \ $(NULL) _BROWSER_TEST_FILES = \ diff --git a/content/html/content/test/test_object_plugin_nav.html b/content/html/content/test/test_object_plugin_nav.html new file mode 100644 index 00000000000..7d6f021ef94 --- /dev/null +++ b/content/html/content/test/test_object_plugin_nav.html @@ -0,0 +1,90 @@ + + + + + + Test for Bug 720130 + + + + + +Mozilla Bug 720130 +

+
+ + + + +
+
+
+
+ +