diff --git a/mozilla/layout/html/forms/src/nsGfxTextControlFrame.cpp b/mozilla/layout/html/forms/src/nsGfxTextControlFrame.cpp
index 59efcfba1b8..c52d824093d 100644
--- a/mozilla/layout/html/forms/src/nsGfxTextControlFrame.cpp
+++ b/mozilla/layout/html/forms/src/nsGfxTextControlFrame.cpp
@@ -642,6 +642,8 @@ void nsGfxTextControlFrame::GetTextControlFrameState(nsString& aValue)
else {
if (mCachedState) {
aValue = *mCachedState;
+ } else {
+ nsFormControlHelper::GetInputElementValue(mContent, &aValue, PR_TRUE);
}
}
}