mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 614988 - "ASSERTION: We should never try to use the editor if we're not initialized unless we're being initialized" should not apply to textarea's; r=bzbarsky a=roc
This commit is contained in:
parent
a408fd8bb9
commit
f10d7e89cf
5
content/html/content/crashtests/614988-1.html
Normal file
5
content/html/content/crashtests/614988-1.html
Normal file
@ -0,0 +1,5 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head><script>window.addEventListener("load", function() { var t = document.getElementById("t"); t.appendChild(t.previousSibling); }, false);</script></head>
|
||||
<body><fieldset><legend></legend><textarea id="t"></textarea></fieldset></body>
|
||||
</html>
|
@ -23,3 +23,4 @@ load 596785-2.html
|
||||
load 606430-1.html
|
||||
load 602117.html
|
||||
load 613027.html
|
||||
load 614988-1.html
|
||||
|
@ -1713,8 +1713,12 @@ nsTextEditorState::SetValue(const nsAString& aValue, PRBool aUserInput)
|
||||
mBoundFrame->SetFireChangeEventState(PR_TRUE);
|
||||
}
|
||||
|
||||
NS_ASSERTION(mEditorInitialized || mInitializing,
|
||||
"We should never try to use the editor if we're not initialized unless we're being initialized");
|
||||
#ifdef DEBUG
|
||||
if (IsSingleLineTextControl()) {
|
||||
NS_ASSERTION(mEditorInitialized || mInitializing,
|
||||
"We should never try to use the editor if we're not initialized unless we're being initialized");
|
||||
}
|
||||
#endif
|
||||
|
||||
nsAutoString currentValue;
|
||||
if (!mEditorInitialized && IsSingleLineTextControl()) {
|
||||
|
Loading…
Reference in New Issue
Block a user