diff --git a/layout/generic/nsFrame.cpp b/layout/generic/nsFrame.cpp index 33b4af7c1f21..657926ed6aaa 100644 --- a/layout/generic/nsFrame.cpp +++ b/layout/generic/nsFrame.cpp @@ -4669,6 +4669,9 @@ nsFrame::GetStyleDataExternal(nsStyleStructID aSID) const nsIFrame::IsFocusable(PRInt32 *aTabIndex, PRBool aWithMouse) { PRInt32 tabIndex = -1; + if (aTabIndex) { + *aTabIndex = -1; // Default for early return is not focusable + } PRBool isFocusable = PR_FALSE; if (mContent && mContent->IsContentOfType(nsIContent::eELEMENT) &&