Closed Bug 966552 Opened 12 years ago Closed 11 years ago

Ctrl+Backspace no longer deletes the previous word in the Gmail compose window

Categories

(Core :: DOM: Editor, defect)

29 Branch
x86_64
All
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla30
Tracking Status
firefox28 --- unaffected
firefox29 + fixed
firefox30 + fixed

People

(Reporter: jaws, Assigned: ehsan.akhgari)

References

Details

(Keywords: regression)

Attachments

(1 file)

STR: Log in to Gmail and start to compose a new message Type a few words Press ctrl+backspace to delete the last word ER: The last word is deleted. AR: The cursor doesn't move. This was broken by the patch in bug 289384, found using mozregression (it is the most likely out of http://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=b9d9649e7ec0&tochange=9d650c07b547).
Keywords: regression
Version: Trunk → 29 Branch
Blocks: 966449
Steps To Reproduce: 1. Open http://www-archive.mozilla.org/editor/midasdemo/ 2. Type something 3. Ctrl + backspace Actual Results: Nothing happens Expected Results: A previous word should be deleted
OS: Windows 7 → All
I see what the problem is on Windows; the IsHTMLEditableFieldFocused() check fails for design mode documents, as they don't have a focused element. (Unfortunately I only thought to test the patch for bug 289384 on contenteditable regions.) As for bug 966449, the test case works for me on Linux as the native keybindings apply in that case.
Because some of us use Firefox for real work, I request the patch be reversed quickly while you look for a complete solution to this problem.
(In reply to neil@parkwaycc.co.uk from comment #3) > I see what the problem is on Windows; the IsHTMLEditableFieldFocused() check > fails for design mode documents, as they don't have a focused element. > (Unfortunately I only thought to test the patch for bug 289384 on > contenteditable regions.) As for bug 966449, the test case works for me on > Linux as the native keybindings apply in that case. Then, when the document node is editable, it should check if the window has focus. See http://mxr.mozilla.org/mozilla-central/source/editor/libeditor/html/nsHTMLEditor.cpp#5112
Assignee: nobody → ehsan
Attachment #8373418 - Flags: review?(neil)
Comment on attachment 8373418 [details] [diff] [review] Ensure that we pick the editor XBL window key handler for designMode documents no matter where the focus is; r=Neil r=me on the code, although I don't understand the test, as I was expecting you to have two words and check that Ctrl+Bksp deletes one of them.
Attachment #8373418 - Flags: review?(neil) → review+
The test puts the caret here: te|st and then does a Ctrl+Backspace which is supposed to delete the preceding word, hence leave st in the DOM. http://hg.mozilla.org/integration/mozilla-inbound/rev/a1b01f4a6d6a
Comment on attachment 8373418 [details] [diff] [review] Ensure that we pick the editor XBL window key handler for designMode documents no matter where the focus is; r=Neil [Approval Request Comment] Bug caused by (feature/regressing bug #): bug 289384 User impact if declined: comment 0 Testing completed (on m-c, etc.): locally Risk to taking this patch (and alternatives if risky): minimal String or IDL/UUID changes made by this patch: none
Attachment #8373418 - Flags: approval-mozilla-aurora?
Please land it on m-c before requesting the uplift :)
Status: NEW → RESOLVED
Closed: 11 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla30
Attachment #8373418 - Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Keywords: checkin-needed
This should still be tracked for Firefox 30.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: