diff --git a/mozilla/content/html/content/src/nsHTMLTextAreaElement.cpp b/mozilla/content/html/content/src/nsHTMLTextAreaElement.cpp index 08f64386175..8a5b9c2257b 100644 --- a/mozilla/content/html/content/src/nsHTMLTextAreaElement.cpp +++ b/mozilla/content/html/content/src/nsHTMLTextAreaElement.cpp @@ -948,8 +948,9 @@ nsHTMLTextAreaElement::RestoreState(nsPresState* aState) nsAutoString value; nsresult rv = aState->GetStateProperty(NS_LITERAL_STRING("value"), value); - NS_ASSERTION(NS_SUCCEEDED(rv), "value restore failed!"); - SetValue(value); + if (rv == NS_STATE_PROPERTY_EXISTS) { + SetValue(value); + } nsAutoString disabled; rv = aState->GetStateProperty(NS_LITERAL_STRING("disabled"), disabled); diff --git a/mozilla/content/html/content/test/Makefile.in b/mozilla/content/html/content/test/Makefile.in index 834f57642d6..d4df9efeee1 100644 --- a/mozilla/content/html/content/test/Makefile.in +++ b/mozilla/content/html/content/test/Makefile.in @@ -115,6 +115,8 @@ _TEST_FILES = test_bug589.html \ test_bug421640.html \ test_bug430351.html \ test_bug430392.html \ + bug441930_iframe.html \ + test_bug441930.html \ $(NULL) libs:: $(_TEST_FILES) diff --git a/mozilla/content/html/content/test/bug441930_iframe.html b/mozilla/content/html/content/test/bug441930_iframe.html new file mode 100644 index 00000000000..532cd5c36ab --- /dev/null +++ b/mozilla/content/html/content/test/bug441930_iframe.html @@ -0,0 +1,27 @@ + +
+ The content of thistextarea should not disappear on page reload:+ ++
+ +
+ + + +