When typing into a text box field and navigating back Safari will actually ask you if you meant to do that. It is the same behaviour when you close a tab that you've typed in, or close a window that you've typed in.
The latter behavior is fine in most cases, as you can initiate a Forward action and return to the page with your text. There is a specific case where this is broken, which is what I was talking about.