Closed Bug 933015 Opened 11 years ago Closed 11 years ago

Scratch "undo" and "redo" menus are completely broken

Categories

(DevTools Graveyard :: Scratchpad, defect, P1)

defect

Tracking

(firefox25 unaffected, firefox26 unaffected, firefox27 verified, firefox28 verified, firefox-esr17 unaffected, firefox-esr24 unaffected)

VERIFIED FIXED
Firefox 28
Tracking Status
firefox25 --- unaffected
firefox26 --- unaffected
firefox27 --- verified
firefox28 --- verified
firefox-esr17 --- unaffected
firefox-esr24 --- unaffected

People

(Reporter: bbenvie, Assigned: anton)

References

Details

Attachments

(1 file)

The keybindings for undo and redo work just fine, but if you press the menu items they act unpredictably (usually not at all). This likely has to do with the switch to CodeMirror.
Priority: -- → P3
Priority: P3 → P1
It seems like Editor's custom controller doesn't get called through the goDoCommand. I'm not sure why yet. I can see supportsCommand being called and returning true but that's about it.
Assignee: nobody → anton
Status: NEW → ASSIGNED
Blocks: 929766
Attached patch WIP 1Splinter Review
This patch attaches controller to the hidden text area. It also removes cmd_cut and cmd_paste from the controller since we don't really need them there *and* they trigger an infinite recursion error which was hidden because of this very bug. :)
Attachment #827100 - Flags: review?(bbenvie)
We will need to uplift this patch to Aurora once its reviewed and in Nightly.
Comment on attachment 827100 [details] [diff] [review]
WIP 1

Review of attachment 827100 [details] [diff] [review]:
-----------------------------------------------------------------

This all looks straightforward, although I might not be qualified to pass judgement on editor stuff since I haven't worked with it. I suppose you're the main person who's worked on it, besides Optimizer. LGTM though!
Attachment #827100 - Flags: review?(bbenvie) → review+
Comment on attachment 827100 [details] [diff] [review]
WIP 1

[Approval Request Comment]
Bug caused by (feature/regressing bug #): 912260
User impact if declined: undo/redo buttons won't work in Scratchpad
Testing completed (on m-c, etc.): fx-team, m-c after fx-team to m-c merge, local
Risk to taking this patch (and alternatives if risky): Low risk. Code didn't change much.
String or IDL/UUID changes made by this patch: N/A
Attachment #827100 - Flags: approval-mozilla-aurora?
https://hg.mozilla.org/mozilla-central/rev/99497e0ef81e
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 28
Attachment #827100 - Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Keywords: verifyme
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:27.0) Gecko/20100101 Firefox/27.0
Mozilla/5.0 (Windows NT 6.2; WOW64; rv:27.0) Gecko/20100101 Firefox/27.0
Mozilla/5.0 (X11; Linux i686; rv:27.0) Gecko/20100101 Firefox/27.0

Verified as fixed on latest Aurora (buildID: 20131107004005) and latest Nightly (buildID: 20131107030200).
Status: RESOLVED → VERIFIED
Keywords: verifyme
Blocks: 971907
No longer blocks: 971907
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: