Open Bug 1970679 Opened 7 months ago Updated 7 months ago

After comment edit, relevant attachment comment disappears until `window.reload`.

Categories

(bugzilla.mozilla.org :: User Interface, defect, P3)

Production
x86_64
Linux

Tracking

()

People

(Reporter: zn7esutb, Unassigned)

Details

(Whiteboard: bmo-triaged)

Attachments

(1 file)

An example is page.cgi?id=comment-revisions.html&bug_id=1963035&comment_id=17525389.

Steps to reproduce

  1. Create a bug.

  2. Upload an attachment.

  3. Comment on that attachment, whilst modifying its name, so that this is attached to a comment in the bug timeline.

  4. Modify the content of that comment.

    Actual results

    The attachment name modification disappears from the comment.

    Expected results

    It shouldn't disappear.

  5. Fire window.reload().

    The attachment name modification re-appears in the comment.

This is because the "Comment on attachment XXX [details]" portion of the comment is not from the comment text itself and is automatically generated and pre-pended to the comment when rendering. This happens in some other special cases as well. To fix this we would need to separate out the auto-generated text from the actual comment text and then when editing a comment, only the comment text is re-rendered. This is something we can look at when we have more time and resources as reloading the page is a workaround for now.

Severity: -- → S3
Priority: -- → P3
Whiteboard: bmo-triaged
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: