Closed Bug 1042825 Opened 10 years ago Closed 10 years ago

Pressing undo twice after loading a file clears out the content

Categories

(DevTools Graveyard :: WebIDE, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED
Firefox 34

People

(Reporter: bgrins, Assigned: bgrins)

References

Details

Attachments

(1 file)

STR: 1) Open a file in the project editor (say, styles.css here: chrome://browser/content/devtools/projecteditor-loader.xul) 2) Undo twice Expected Nothing happens when undoing (the file just loaded and you haven't made any changes) Actual The contents of the editor is cleared out There is a clearHistory provided by the Editor object, so it may just be as simple as calling that after calling setText in editor.load
Attached patch undo-clear.patch (deleted) — Splinter Review
This fixes the issue
Assignee: nobody → bgrinstead
Status: NEW → ASSIGNED
Attachment #8469254 - Flags: review?(jryans)
Comment on attachment 8469254 [details] [diff] [review] undo-clear.patch Review of attachment 8469254 [details] [diff] [review]: ----------------------------------------------------------------- Seems to work well! Thanks!
Attachment #8469254 - Flags: review?(jryans) → review+
Flags: in-testsuite+
Keywords: checkin-needed
Whiteboard: [fixed-in-fx-team]
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 34
Verified as fixed using latest Aurora 34.0a2 build (20141008004004) under Win 7 64-bit, Ubuntu 13.04 64-bit and Mac OSX 10.9.5. Undo is active only after modifying file's content.
Status: RESOLVED → VERIFIED
QA Whiteboard: [qa+] → [qa!]
Product: Firefox → DevTools
Product: DevTools → DevTools Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: