Open
Bug 387607
Opened 18 years ago
Updated 12 years ago
When going back in a browser or looking at a restored browser session, "edit attachment as comment" is hidden even though is content in the comment
Categories
(Bugzilla :: Attachments & Requests, defect)
Tracking
()
NEW
People
(Reporter: myk, Unassigned)
Details
(Whiteboard: [needs new patch])
Attachments
(1 file, 1 obsolete file)
|
708 bytes,
patch
|
Details | Diff | Splinter Review |
Firefox's Session Restore feature restores the content of the "editFrame" textarea on Bugzilla's Attachment Details page when the "Edit Attachment as Comment" button has been pressed, but because it doesn't restore the DOM or JS state of the page (bug 387598), the restored page isn't in "edit attachment as comment" mode, and pressing the button wipes out the value in the editFrame textarea, replacing it with a fresh version of the attachment.
To work around this problem until Session Restore becomes capable of restoring the entire state of the page, Bugzilla should check for the presence of content in the textarea after session restore restores the content of that field, and if there's content in it, Bugzilla shouldn't overwrite it when the user clicks "Edit Attachment as Comment" and should switch into "edit attachment as comment" mode.
Assignee: attach-and-request → timeless
Status: NEW → ASSIGNED
Attachment #275383 -
Flags: review?(myk)
| Reporter | ||
Comment 2•18 years ago
|
||
Comment on attachment 275383 [details] [diff] [review]
only replace whitetext
Looks good, r=myk
Attachment #275383 -
Flags: review?(myk) → review+
Updated•18 years ago
|
Summary: detect and acccommodate restored "edit attachment as comment" mode → detect and accommodate restored "edit attachment as comment" mode
Updated•18 years ago
|
Flags: approval?
Flags: approval3.0?
Target Milestone: --- → Bugzilla 3.0
Updated•18 years ago
|
Severity: enhancement → minor
Comment 3•18 years ago
|
||
Oh, this should be helpful for people hitting the back button, too, yes? Lord knows how many reviews I've lost that way...
Flags: approval?
Flags: approval3.0?
Flags: approval3.0+
Flags: approval+
Whiteboard: [relnote 3.0.2]
Comment on attachment 275383 [details] [diff] [review]
only replace whitetext
mozilla/webtools/bugzilla/template/en/default/attachment/edit.html.tmpl 1.46
BUGZILLA-3_0-BRANCH:
mozilla/webtools/bugzilla/template/en/default/attachment/edit.html.tmpl 1.41.2.2
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Comment 5•18 years ago
|
||
Comment on attachment 275383 [details] [diff] [review]
only replace whitetext
)I(*"/ç(/Z*"Qç)(Z()Q*Zç)N(Q/*ç!!!!!!!
Error : editFrame.value.test is not a function
Source file: https://localhost/bugzilla/attachment.cgi?id=45&action=edit
Line : 226
Attachment #275383 -
Flags: review-
Updated•18 years ago
|
Status: RESOLVED → REOPENED
Flags: approval3.0+
Flags: approval+
Resolution: FIXED → ---
Comment 6•18 years ago
|
||
The patch has been backed out from both trunk and the 3.0 branch. Thanks again timeless for not testing your patches and breaking attachments. You cannot edit any attachment anymore with your patch applied!
tip:
Checking in template/en/default/attachment/edit.html.tmpl;
/cvsroot/mozilla/webtools/bugzilla/template/en/default/attachment/edit.html.tmpl,v <-- edit.html.tmpl
new revision: 1.47; previous revision: 1.46
done
3.0.1:
Checking in template/en/default/attachment/edit.html.tmpl;
/cvsroot/mozilla/webtools/bugzilla/template/en/default/attachment/edit.html.tmpl,v <-- edit.html.tmpl
new revision: 1.41.2.3; previous revision: 1.41.2.2
done
Whiteboard: [relnote 3.0.2]
Updated•18 years ago
|
Target Milestone: Bugzilla 3.0 → Bugzilla 3.2
Attachment #275383 -
Attachment is obsolete: true
Attachment #288980 -
Flags: review?(myk)
Updated•17 years ago
|
Status: REOPENED → ASSIGNED
Target Milestone: Bugzilla 3.2 → Bugzilla 4.0
| Reporter | ||
Comment 8•17 years ago
|
||
Comment on attachment 288980 [details] [diff] [review]
regexp in the right position (hopefully)
Canceling this review request, as I'm no longer able to do Bugzilla reviews.
Attachment #288980 -
Flags: review?(myk)
Comment 9•16 years ago
|
||
LpSolit: Now that we've changed how this works, is this necessary anymore?
Comment 10•16 years ago
|
||
(In reply to comment #9)
> LpSolit: Now that we've changed how this works, is this necessary anymore?
The patch no longer applies, but the problem still exists yes (tested right now with Firefox 3.5.2).
Updated•16 years ago
|
Assignee: timeless → attach-and-request
Summary: detect and accommodate restored "edit attachment as comment" mode → When going back in a browser or looking at a restored browser session, "edit attachment as comment" is hidden even though is content in the comment
Whiteboard: [needs new patch]
Target Milestone: Bugzilla 4.0 → ---
Updated•15 years ago
|
Status: ASSIGNED → NEW
You need to log in
before you can comment on or make changes to this bug.
Description
•