Closed Bug 1599865 Opened 5 years ago Closed 4 years ago

Bug description is erased during page load, leading to dataloss during Firefox session restore

Categories

(bugzilla.mozilla.org :: Bug Creation/Editing, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: mstange, Assigned: kohei)

References

Details

(Keywords: dataloss)

Attachments

(2 files)

Steps to reproduce:

  1. Go to the Enter Bug page and write some text into the Description comment text box.
  2. Quit Firefox.
  3. Start Firefox again.
  4. Restore your tabs.

Expected results:
The restored textbox should keep its value.

Actual results:
All the text which I painstakingly typed into this textbox is gone.
Sometimes I can see the text for a brief moment during page load, but then it gets erased.

Attached video screen recording

This issue just happened to me. Not with session restore but page navigation; just moving to another page and going back to the Enter Bug page, then the comment field will be empty. It’s probably related to comment templates I had implemented. Will take a look.

Assignee: nobody → kohei.yoshino
Attached file GitHub Pull Request

A simple fix. Ideally the edited comment should be stored in local storage, just like the bug page, so it can be restored more reliably even when the page is revisited or hard-reloaded. That can be done probably in Bug 1476107.

Status: NEW → ASSIGNED
Component: User Interface → Bug Creation/Editing
See Also: → 1476107

Merged to master.

Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Regressions: 1620236
No longer regressions: 1620236
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: