mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-08 12:22:34 +00:00
Bug 1443664 - Form control might not have non-chrome only content. r=smaug
This commit is contained in:
parent
837dc7eaaa
commit
06aaef4673
@ -376,6 +376,10 @@ HTMLEditor::UpdateRootElement()
|
||||
already_AddRefed<nsIContent>
|
||||
HTMLEditor::FindSelectionRoot(nsINode* aNode)
|
||||
{
|
||||
if (NS_WARN_IF(!aNode)) {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
NS_PRECONDITION(aNode->IsNodeOfType(nsINode::eDOCUMENT) ||
|
||||
aNode->IsContent(),
|
||||
"aNode must be content or document node");
|
||||
|
10
editor/libeditor/crashtests/1443664.html
Normal file
10
editor/libeditor/crashtests/1443664.html
Normal file
@ -0,0 +1,10 @@
|
||||
<style>
|
||||
input:focus { counter-increment: c; }
|
||||
</style>
|
||||
<script>
|
||||
function go() {
|
||||
a.select();
|
||||
}
|
||||
</script>
|
||||
<body onload=go()>
|
||||
<input id="a" type="number" contenteditable="true">
|
@ -97,4 +97,5 @@ load 1408170.html
|
||||
load 1414581.html
|
||||
load 1415231.html
|
||||
load 1425091.html
|
||||
load 1443664.html
|
||||
load 1446451.html
|
||||
|
Loading…
Reference in New Issue
Block a user