Open Bug 1620236 Opened 4 years ago Updated 4 years ago

Comments on submitted bugs are re-populated if user chooses to show next bug in my list after changing a bug

Categories

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

defect
Not set
normal

Tracking

()

People

(Reporter: bc, Unassigned)

References

(Regression)

Details

(Keywords: regression)

Attachments

(2 files)

It appears that bug 1599865 has caused submitted bug comments to remain in Local Storage and and to be used to fill the comment text area on revisiting or reloading a bug even after the comment has been submitted.

This is occurring for me with Nightly on Linux and is a major inconvenience.

Interesting. Does this happen every time? Has anyone encountered the issue since Bug 1599865 deployed to production last week?

I didn’t see any issue with the comment above. The comment field became empty after submission.

And I think the relevant bug is Bug 1472757. The New Bug page isn’t using local storage yet.

Regressed by: 1472757
No longer regressed by: 1599865

Came up with a scenario: If you have changed the After changing a bug preference from Show the updated bug to Show next bug in my list, the local storage won’t be cleared. Not sure if this applies to Bob’s case though.

I see it every time. I do have show next bug in my list set. I just changed it to show the updated bug. Let's see if it worked!

I do not see the comment pre-populated.

Thanks for testing! I’ll figure out how to work around the “next bug” issue.

Assignee: nobody → kohei.yoshino
Summary: Comments on submitted bugs are re-populated → Comments on submitted bugs are re-populated if user chooses to show next bug in my list after changing a bug
Status: NEW → ASSIGNED
Attached file GitHub Pull Request

Simple fix.

Merged to master.

Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED

Changed my pref back to show next bug in list...

Really changing my pref...

I'm sorry. I thought this had been deployed. I'll wait for bmo push day to verify.

And now it has...

kohei: I just saw the bmo push day notice, changed my pref back, reloaded the page and still see the comment populated after visiting the bug again. Am I just early or is this not fixed?

Flags: needinfo?(kohei.yoshino)

I just tested with Bug 1614329 and the comment cache was cleared properly. But if you simply navigate back to the previous page after changing a bug, the comment field may still have your posted comment because of the browser’s back-forward cache. Not sure if we can avoid this behaviour.

Flags: needinfo?(kohei.yoshino)

I don't think this was the bf cache. If I recall correctly it was clicking on the link to the bug after it was updated and not using the back button. I just switched the pref and reloaded and will confirm after I post this comment.

I don't think this was the bf cache. If I recall correctly it was clicking on the link to the bug after it was updated and not using the back button. I just switched the pref and reloaded and will confirm after I post this comment.

I can confirm I see the same comment already in the input after clicking the link to the updated bug. I'll do this comment and then check local storage to see if the comment is still there before I click the link.

The local storage still contained the previous comment. The storage is continually updated as I type this.

Clicking save did not delete the local storage. This is not fixed. Remember you need to set the "After changing a bug" to "Show next bug in my list".

Status: RESOLVED → REOPENED
Resolution: FIXED → ---

Would you mind taking a screencast?

I don't really have any screencasting software installed. I'll walk through the steps to reproduce on Fedora 31 using Nightly 76.0a1.

  1. Click my avator in the top right corner.
  2. Middle click Preferences to load it in a new tab.
  3. Click General Preferences
  4. Change After changing a bug to Show next bug in my list.
  5. Scroll down and click Submit Changes.
  6. Open Web Developer Storage Inspector
  7. Note no comments saved.
  8. Click Save Changes.

This is really frustrating. I have submitted a few duplicate comments recently because of this bug. I have changed the pref back to the default to see if that fixes the problem.

Assignee: kohei.yoshino → nobody
Status: REOPENED → NEW
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: