formhistorycontrol-2 icon indicating copy to clipboard operation
formhistorycontrol-2 copied to clipboard

Form history lost under some circumstances with a test case

Open birdie-github opened this issue 5 years ago • 2 comments

Steps to reproduce:

  1. Sign up at https://news.ycombinator.com/
  2. Open concurrently two comment forms for different comments
  3. Fill them both with different replies, wait for a few minutes just in case
  4. Close the browser
  5. Open the browser again

Result: only one of the fields will be present in the database - the other one is lost for some reasons. That's quite nasty. Please fix.

birdie-github avatar Dec 31 '19 23:12 birdie-github

The cause of this issue is the fact that FHC does not distinguish between input fields of the same website when the input fields have identical identifiers and are being used simultaneously in different tabs or windows. FHC will store formhistory for the field you are currently editing, when switching to another replica the formhistory for that input field will overwrite the one entry in the formhistory datastore.

stephanmahieu avatar Apr 19 '21 09:04 stephanmahieu

This has hit me also. Any plans to distinguish the fields?

dumblob avatar Mar 07 '22 11:03 dumblob