diff --git a/dom/base/nsFocusManager.cpp b/dom/base/nsFocusManager.cpp index 275b42ec2a3c..222693acb05f 100644 --- a/dom/base/nsFocusManager.cpp +++ b/dom/base/nsFocusManager.cpp @@ -855,7 +855,7 @@ nsFocusManager::ContentRemoved(nsIDocument* aDocument, nsIContent* aContent) } } - NotifyFocusStateChange(aContent, shouldShowFocusRing, false); + NotifyFocusStateChange(content, shouldShowFocusRing, false); } return NS_OK; diff --git a/layout/reftests/bugs/731726-1-ref.html b/layout/reftests/bugs/731726-1-ref.html new file mode 100644 index 000000000000..34a58f1a9ef9 --- /dev/null +++ b/layout/reftests/bugs/731726-1-ref.html @@ -0,0 +1,13 @@ + + + + + + + +
+ + + diff --git a/layout/reftests/bugs/731726-1.html b/layout/reftests/bugs/731726-1.html new file mode 100644 index 000000000000..a016e62ae8ae --- /dev/null +++ b/layout/reftests/bugs/731726-1.html @@ -0,0 +1,17 @@ + + + + + + +
+ +
+ + + diff --git a/layout/reftests/bugs/reftest.list b/layout/reftests/bugs/reftest.list index 88a08c269cd7..f1a137827b31 100644 --- a/layout/reftests/bugs/reftest.list +++ b/layout/reftests/bugs/reftest.list @@ -1694,3 +1694,4 @@ fuzzy-if(d2d,1,19) fuzzy-if(cocoaWidget,1,170) == 718521.html 718521-ref.html == 720987.html 720987-ref.html == 722923-1.html 722923-1-ref.html == 729143-1.html 729143-1-ref.html +needs-focus == 731726-1.html 731726-1-ref.html