Bug 620: Reset form fields to default values on reload
commit0b99fa70ca9d0f976655e61adee1a5eebacc0734
authorMiciah Dashiel Butler Masters <miciah.masters@gmail.com>
Tue, 10 Jun 2008 06:41:34 +0000 (10 06:41 +0000)
committerKalle Olavi Niemitalo <Kalle@Astalo.kon.iki.fi>
Sun, 15 Jun 2008 19:49:57 +0000 (15 22:49 +0300)
tree055d7c1a4d861ec965121c613a435d62bcd69a33
parentc2cf48f9e6ce76e5ee8824af7a86aeb78676faf1
Bug 620: Reset form fields to default values on reload

Do not retain changed values in form fields when the user reloads.  Doing
so can be confusing or even cause data-loss when new default values are
specified in the updated document.  For example, when editing an article on
Wikipedia, one loads the edit page for the article, makes and submits
changes, goes back to the edit page to make further modifications, and
reloads to get the new article text.  Before this change, reloading the
edit page would not update the textarea on the page with the new article
source, which can lead one (and has led me) to make changes to the original
version of the article by accident.

This fixes bug 620.
(cherry picked from commit 9e1e94bee0da92a9b753e211f798b22e93713e95)
src/document/renderer.c