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

NEW
Unassigned

Status

()

Core
Layout: Form Controls
--
minor
10 years ago
8 years ago

People

(Reporter: dolphinling, Unassigned)

Tracking

Trunk
x86
Linux
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(URL)

(Reporter)

Description

10 years ago
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.

Comment 2

10 years ago
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.
You need to log in before you can comment on or make changes to this bug.