diff --git a/accessible/src/base/nsRootAccessible.cpp b/accessible/src/base/nsRootAccessible.cpp index cad1690c62da..5f4a64845fb9 100644 --- a/accessible/src/base/nsRootAccessible.cpp +++ b/accessible/src/base/nsRootAccessible.cpp @@ -811,7 +811,7 @@ nsresult nsRootAccessible::HandleEventWithTarget(nsIDOMEvent* aEvent, FireAccessibleFocusEvent(accessible, focusedItem, aEvent); } else if (eventType.EqualsLiteral("blur")) { - gLastFocusedNode = nsnull; + NS_IF_ADDREF(gLastFocusedNode); gLastFocusedFrameType = nsnull; gLastFocusedAccessiblesState = 0; }