After comment edit, relevant attachment comment disappears until `window.reload`.
Categories
(bugzilla.mozilla.org :: User Interface, defect, P3)
Tracking
()
People
(Reporter: zn7esutb, Unassigned)
Details
(Whiteboard: bmo-triaged)
Attachments
(1 file)
|
630.56 KB,
video/webm
|
Details |
An example is page.cgi?id=comment-revisions.html&bug_id=1963035&comment_id=17525389.
Steps to reproduce
-
Create a bug.
-
Upload an attachment.
-
Comment on that attachment, whilst modifying its name, so that this is attached to a comment in the bug timeline.
-
Modify the content of that comment.
Actual results
The attachment name modification disappears from the comment.
Expected results
It shouldn't disappear.
-
Fire
window.reload().The attachment name modification re-appears in the comment.
Comment 1•7 months ago
|
||
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.
Description
•