diff --git a/dom/base/nsFocusManager.cpp b/dom/base/nsFocusManager.cpp index 500ef4cbbe5..d3521123a02 100644 --- a/dom/base/nsFocusManager.cpp +++ b/dom/base/nsFocusManager.cpp @@ -1048,7 +1048,7 @@ nsFocusManager::SetFocusInner(nsIContent* aNewContent, PRInt32 aFlags, if (!isElementInFocusedWindow) commonAncestor = GetCommonAncestor(newWindow, mFocusedWindow); - if (!Blur(currentIsSameOrAncestor ? mFocusedWindow : nsnull, + if (!Blur(currentIsSameOrAncestor ? mFocusedWindow.get() : nsnull, commonAncestor, !isElementInFocusedWindow)) return; }