mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 12:55:46 +00:00
Bug 595337 - Crash [@ nsTextEditorState::InitializeKeyboardEventListeners] on print preview close with iframe, position:fixed and input r,a=roc
This commit is contained in:
parent
c96d21b6bf
commit
a0c782c046
@ -218,6 +218,21 @@ function runTest4() {
|
||||
function runTest4end() {
|
||||
printpreview();
|
||||
exitprintpreview();
|
||||
|
||||
setTimeout(runTest5, 0);
|
||||
}
|
||||
|
||||
// This is a crash test for bug 595337
|
||||
function runTest5() {
|
||||
window.frames[0].document.body.innerHTML =
|
||||
'<iframe style="position: fixed; visibility: hidden; bottom: 10em;"></iframe>' +
|
||||
'<input contenteditable="true" style="display: table; page-break-before: left; width: 10000px;">';
|
||||
setTimeout(runTest5end, 500);
|
||||
}
|
||||
|
||||
function runTest5end() {
|
||||
printpreview();
|
||||
exitprintpreview();
|
||||
SimpleTest.finish();
|
||||
window.close();
|
||||
}
|
||||
|
@ -1353,11 +1353,11 @@ nsTextControlFrame::SetInitialChildList(nsIAtom* aListName,
|
||||
// than descending from the root frame of the frame hierarchy.
|
||||
if (first) {
|
||||
first->AddStateBits(NS_FRAME_REFLOW_ROOT);
|
||||
}
|
||||
|
||||
nsCOMPtr<nsITextControlElement> txtCtrl = do_QueryInterface(GetContent());
|
||||
NS_ASSERTION(txtCtrl, "Content not a text control element");
|
||||
txtCtrl->InitializeKeyboardEventListeners();
|
||||
nsCOMPtr<nsITextControlElement> txtCtrl = do_QueryInterface(GetContent());
|
||||
NS_ASSERTION(txtCtrl, "Content not a text control element");
|
||||
txtCtrl->InitializeKeyboardEventListeners();
|
||||
}
|
||||
return rv;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user