Browsers should provide text input recovery, at least short term. Even a 15-minute storage would be enough for the most common use-cases.
For example, if I attempt to submit a form, but the website errors out, I should be able to reload the page, right-click the input, and click something like “Recover input” in the context menu.