Open Bug 448784 Opened 16 years ago Updated 2 years ago

Undo/Redo broken on input with :focus{overflow:hidden;} when input is blurred

Categories

(Core :: Layout: Form Controls, defect)

x86
Linux
defect

Tracking

()

People

(Reporter: aguertin+bugzilla, Unassigned)

References

()

Details

Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1a2pre) Gecko/2008080103 Minefield/3.1a2pre

Followup from bug 446663.

1. Visit testcase
2. Type in control with :focus{overflow:hidden;}
3. Un-focus and re-focus control
4. Check edit menu

No undo. When steps are applied to unstyled input, there is an undo.
Unfocusing and refocusing tears down the control (and more importantly the editor), so there is nothing to undo anymore: the new editor just has the text it was initialized with, not all of the old editor's state.

You can get the same effect by having script set "display:none" and then unset it.

The point with bug 446663 was that undo didn't work at all, even if you just focused the control and typed for a while.
Boris, does that mean that this bug it to resolve to invalid?
I was just explaining the exact technical reason why this bug exists.

Users don't care about technical reasons.  They just want stuff to work.

So this bug is not invalid.  Just very difficult to fix given the editor architecture.
Severity: minor → S4
You need to log in before you can comment on or make changes to this bug.