зеркало из https://github.com/mozilla/gecko-dev.git
Bug 731726 - Moving the parentNode of a focused DOM node does not remove the node's focus ring; r=Enn
This commit is contained in:
Родитель
54039371b0
Коммит
05ac8de7e4
|
@ -855,7 +855,7 @@ nsFocusManager::ContentRemoved(nsIDocument* aDocument, nsIContent* aContent)
|
|||
}
|
||||
}
|
||||
|
||||
NotifyFocusStateChange(aContent, shouldShowFocusRing, false);
|
||||
NotifyFocusStateChange(content, shouldShowFocusRing, false);
|
||||
}
|
||||
|
||||
return NS_OK;
|
||||
|
|
|
@ -0,0 +1,13 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<style type="text/css">input{border: none}</style>
|
||||
</head>
|
||||
<body>
|
||||
<input id="button2" type="button"/>
|
||||
<div id="target"><div><input id="button" type="button"/></div></div>
|
||||
<script>
|
||||
document.getElementById("button2").focus();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,17 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<style type="text/css">input{border: none}</style>
|
||||
</head>
|
||||
<body>
|
||||
<div><input id="button" type="button"/></div>
|
||||
<input id="button2" type="button"/>
|
||||
<div id="target"/>
|
||||
<script>
|
||||
var button = document.getElementById("button");
|
||||
button.focus();
|
||||
document.getElementById("target").appendChild(button.parentNode);
|
||||
document.getElementById("button2").focus();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче