gecko-dev/dom/events
Masayuki Nakano e4a81444c1 Bug 1807495 - part 1: Make `Document` notify `HTMLEditor` and `IMEStateManager` of pseudo focus change when editing state of focused editing host or document is changed r=smaug,m_kato
`IMEStateManager` basically runs at focus change.  However, when `designMode`
is set to `"off"` or focused editing host becomes non-editable (removing
`contenteditable` attribute or `contenteditable` attribute is set to `false`),
IME may be disabled without a focus change.  Therefore, `Document` needs to
notify `IMEStateManager` of the timing.

Additionally, `nsFocusManager` does not change focus when focused element
becomes not focusable (bug 1807597).  Therefore, `Document` needs to kick
`focus` or `blur` event handler of `HTMLEditor` when active editing host
becomes not editable.

However, if an ancestor of focused element becomes editable, I think that
`HTMLEditor` does not work well without focus move because it computes
editing host with current editing state in a lot of places, but `Selection`
and `nsFocusManager::GetFocusedElement` keeps working with previous focused
element which is now a editable child of editing host.  Therefore, this patch
marks them as `todo` in the new tests.

Differential Revision: https://phabricator.services.mozilla.com/D171196
2023-04-11 23:26:03 +00:00
..
crashtests
test Bug 1807495 - part 1: Make `Document` notify `HTMLEditor` and `IMEStateManager` of pseudo focus change when editing state of focused editing host or document is changed r=smaug,m_kato 2023-04-11 23:26:03 +00:00
AnimationEvent.cpp Bug 1807812 - Remove WidgetEventTime::mTime, r=masayuki,geckoview-reviewers,m_kato 2023-01-02 12:31:40 +00:00
AnimationEvent.h Bug 1768189 - Part 9: Apply modernize-concat-nested-namespaces to dom/debugger/DebuggerNotification.h ... r=andi 2022-05-09 20:41:06 +00:00
AsyncEventDispatcher.cpp
AsyncEventDispatcher.h
BeforeUnloadEvent.cpp
BeforeUnloadEvent.h Bug 1768189 - Part 9: Apply modernize-concat-nested-namespaces to dom/debugger/DebuggerNotification.h ... r=andi 2022-05-09 20:41:06 +00:00
Clipboard.cpp Bug 1793917 - ClipboardItem::ItemEntry don't need to have both type and format member; r=nika 2023-02-08 20:40:44 +00:00
Clipboard.h Bug 1773477 - Part 4: Rename ReadText* to Read*; r=nika 2022-08-29 08:03:41 +00:00
ClipboardEvent.cpp Bug 1807812 - Remove WidgetEventTime::mTime, r=masayuki,geckoview-reviewers,m_kato 2023-01-02 12:31:40 +00:00
ClipboardEvent.h Bug 1768189 - Part 9: Apply modernize-concat-nested-namespaces to dom/debugger/DebuggerNotification.h ... r=andi 2022-05-09 20:41:06 +00:00
ClipboardItem.cpp Bug 1793917 - ClipboardItem::ItemEntry don't need to have both type and format member; r=nika 2023-02-08 20:40:44 +00:00
ClipboardItem.h Bug 1793917 - ClipboardItem::ItemEntry don't need to have both type and format member; r=nika 2023-02-08 20:40:44 +00:00
CommandEvent.cpp Bug 1807812 - Remove WidgetEventTime::mTime, r=masayuki,geckoview-reviewers,m_kato 2023-01-02 12:31:40 +00:00
CommandEvent.h Bug 1768189 - Part 9: Apply modernize-concat-nested-namespaces to dom/debugger/DebuggerNotification.h ... r=andi 2022-05-09 20:41:06 +00:00
CompositionEvent.cpp Bug 1807812 - Remove WidgetEventTime::mTime, r=masayuki,geckoview-reviewers,m_kato 2023-01-02 12:31:40 +00:00
CompositionEvent.h Bug 1768189 - Part 9: Apply modernize-concat-nested-namespaces to dom/debugger/DebuggerNotification.h ... r=andi 2022-05-09 20:41:06 +00:00
ConstructibleEventTarget.cpp
ConstructibleEventTarget.h Bug 1768189 - Part 9: Apply modernize-concat-nested-namespaces to dom/debugger/DebuggerNotification.h ... r=andi 2022-05-09 20:41:06 +00:00
ContentEventHandler.cpp Bug 1823215 - Use ElementOrArray<T> to simplify the management of glyphrun(s) in gfxTextRun. r=gfx-reviewers,lsalzman 2023-03-19 16:36:06 +00:00
ContentEventHandler.h Bug 1726297 - part 5: Make `ContentEventHandler` use common utility methods to compute caret rect from a character rect r=smaug 2022-11-11 13:43:24 +00:00
CustomEvent.cpp Bug 1777574, automate CC zone handling, r=mccr8 2022-09-07 11:22:51 +00:00
CustomEvent.h Bug 1768189 - Part 9: Apply modernize-concat-nested-namespaces to dom/debugger/DebuggerNotification.h ... r=andi 2022-05-09 20:41:06 +00:00
DOMEventTargetHelper.cpp Bug 1777574, automate CC zone handling, r=mccr8 2022-09-07 11:22:51 +00:00
DOMEventTargetHelper.h Bug 1777574, automate CC zone handling, r=mccr8 2022-09-07 11:22:51 +00:00
DataTransfer.cpp Bug 1809122 - Track top-level window context in DragSession; r=smaug 2023-02-13 18:44:04 +00:00
DataTransfer.h Bug 1809122 - Track top-level window context in DragSession; r=smaug 2023-02-13 18:44:04 +00:00
DataTransferItem.cpp Bug 1776879, replace text/unicode for clipboard and drag and drop and use text/plain directly, r=edgar,mak,stransky,geckoview-reviewers,extension-reviewers,zombie,m_kato 2023-02-01 23:30:55 +00:00
DataTransferItem.h Bug 1437126 - Support imgIContainer as a file type in DataTransfer. r=nika 2022-11-28 10:50:20 +00:00
DataTransferItemList.cpp
DataTransferItemList.h Bug 1777574, automate CC zone handling, r=mccr8 2022-09-07 11:22:51 +00:00
DeviceMotionEvent.cpp Bug 1807812 - Remove WidgetEventTime::mTime, r=masayuki,geckoview-reviewers,m_kato 2023-01-02 12:31:40 +00:00
DeviceMotionEvent.h Bug 1777574, automate CC zone handling, r=mccr8 2022-09-07 11:22:51 +00:00
DragEvent.cpp Bug 1807812 - Remove WidgetEventTime::mTime, r=masayuki,geckoview-reviewers,m_kato 2023-01-02 12:31:40 +00:00
DragEvent.h Bug 1768189 - Part 9: Apply modernize-concat-nested-namespaces to dom/debugger/DebuggerNotification.h ... r=andi 2022-05-09 20:41:06 +00:00
Event.cpp Bug 1815271 - Event::GetType could avoid allocations when GetEventName(mMessage) returns a non-null value, r=masayuki 2023-02-06 23:55:37 +00:00
Event.h Bug 1810964 - Replace callers of nsContentUtils::ResistFingerprinting. r=tjr,emilio 2023-01-23 11:52:56 +00:00
EventDispatcher.cpp Bug 1803751 - Make some marker fields searchable and bump the profile version r=julienw 2022-12-13 14:19:07 +00:00
EventDispatcher.h
EventListenerManager.cpp Bug 1819769 - don't dispatch a11y related events when there are no listeners, r=masayuki 2023-04-11 09:24:21 +00:00
EventListenerManager.h Bug 1826603 - Don't dispatch transition events if there are no listeners, r=masayuki 2023-04-06 09:09:33 +00:00
EventListenerService.cpp Bug 1792574, part 3 - Don't include nsMemory where it isn't needed. r=xpcom-reviewers,necko-reviewers,valentin,nika 2022-09-28 15:17:46 +00:00
EventListenerService.h
EventNameList.h Bug 1823359 - Implement beforetoggle event for popover. r=emilio,smaug 2023-03-24 21:09:11 +00:00
EventStateManager.cpp Bug 1825825 - Simplify NAC setup. r=smaug 2023-04-05 09:19:15 +00:00
EventStateManager.h Bug 1791083 - Unset the hover state when a page enters BFCache r=smaug 2023-01-04 22:53:07 +00:00
EventTarget.cpp
EventTarget.h
FocusEvent.cpp Bug 1807812 - Remove WidgetEventTime::mTime, r=masayuki,geckoview-reviewers,m_kato 2023-01-02 12:31:40 +00:00
FocusEvent.h Bug 1768189 - Part 9: Apply modernize-concat-nested-namespaces to dom/debugger/DebuggerNotification.h ... r=andi 2022-05-09 20:41:06 +00:00
GlobalKeyListener.cpp Bug 1771448 - part 4: Rename `HTMLEditor::GetActiveEditingHost` to `ComputeEditingHost` r=m_kato 2022-05-31 03:41:01 +00:00
GlobalKeyListener.h
IMEContentObserver.cpp Bug 1797796 - Make `eSetSelection` event not handled if `Selection` is set to same offset and length r=m_kato 2023-03-01 05:57:32 +00:00
IMEContentObserver.h Bug 1797796 - Make `eSetSelection` event not handled if `Selection` is set to same offset and length r=m_kato 2023-03-01 05:57:32 +00:00
IMEStateManager.cpp Bug 1807495 - part 1: Make `Document` notify `HTMLEditor` and `IMEStateManager` of pseudo focus change when editing state of focused editing host or document is changed r=smaug,m_kato 2023-04-11 23:26:03 +00:00
IMEStateManager.h Bug 1807495 - part 1: Make `Document` notify `HTMLEditor` and `IMEStateManager` of pseudo focus change when editing state of focused editing host or document is changed r=smaug,m_kato 2023-04-11 23:26:03 +00:00
ImageCaptureError.cpp
ImageCaptureError.h Bug 1777574, automate CC zone handling, r=mccr8 2022-09-07 11:22:51 +00:00
InputEvent.cpp Bug 1807812 - Remove WidgetEventTime::mTime, r=masayuki,geckoview-reviewers,m_kato 2023-01-02 12:31:40 +00:00
InputEvent.h Bug 1768189 - Part 9: Apply modernize-concat-nested-namespaces to dom/debugger/DebuggerNotification.h ... r=andi 2022-05-09 20:41:06 +00:00
InputEventOptions.h
InputTypeList.h
InternalMutationEvent.h
JSEventHandler.cpp Bug 1807842 - JSEventHandler could have a pointer to EventTarget, not nsISupports, r=masayuki 2023-01-02 10:45:12 +00:00
JSEventHandler.h Bug 1807842 - JSEventHandler could have a pointer to EventTarget, not nsISupports, r=masayuki 2023-01-02 10:45:12 +00:00
KeyEventHandler.cpp Bug 1812329 - Move accesskey out of nsMenubarListener. r=smaug 2023-02-07 16:29:40 +00:00
KeyEventHandler.h Bug 1812329 - Move accesskey out of nsMenubarListener. r=smaug 2023-02-07 16:29:40 +00:00
KeyNameList.h
KeyboardEvent.cpp Bug 1811855 - Annotate KeyboardEvent ShouldResistFingerprinting efficiency check. r=tjr 2023-02-13 16:31:25 +00:00
KeyboardEvent.h Bug 1812329 - Move accesskey out of nsMenubarListener. r=smaug 2023-02-07 16:29:40 +00:00
MessageEvent.cpp Bug 1777574, automate CC zone handling, r=mccr8 2022-09-07 11:22:51 +00:00
MessageEvent.h Bug 1659025 - Implement [Transferable] for ReadableStream r=smaug,sfink 2022-05-19 11:54:31 +00:00
MouseEvent.cpp Bug 1810964 - Replace callers of nsContentUtils::ResistFingerprinting. r=tjr,emilio 2023-01-23 11:52:56 +00:00
MouseEvent.h Bug 1756323 - Cleanup mouse event coord code. r=jfkthame 2022-02-21 11:53:02 +00:00
MouseScrollEvent.cpp Bug 1807812 - Remove WidgetEventTime::mTime, r=masayuki,geckoview-reviewers,m_kato 2023-01-02 12:31:40 +00:00
MouseScrollEvent.h Bug 1768189 - Part 9: Apply modernize-concat-nested-namespaces to dom/debugger/DebuggerNotification.h ... r=andi 2022-05-09 20:41:06 +00:00
MutationEvent.cpp
MutationEvent.h Bug 1768189 - Part 9: Apply modernize-concat-nested-namespaces to dom/debugger/DebuggerNotification.h ... r=andi 2022-05-09 20:41:06 +00:00
NotifyPaintEvent.cpp Bug 1754037 - Part 3c: Automatically update all ParamTraits implementations, r=ipc-reviewers,media-playback-reviewers,bryce,mccr8 2022-03-04 15:39:41 +00:00
NotifyPaintEvent.h Bug 1768189 - Part 9: Apply modernize-concat-nested-namespaces to dom/debugger/DebuggerNotification.h ... r=andi 2022-05-09 20:41:06 +00:00
PaintRequest.cpp Bug 1754579 - Don't keep so much alive when returning DOMRects & co. r=smaug 2022-02-10 00:38:45 +00:00
PaintRequest.h Bug 1777574, automate CC zone handling, r=mccr8 2022-09-07 11:22:51 +00:00
PendingFullscreenEvent.h
PhysicalKeyCodeNameList.h
PointerEvent.cpp Bug 1825233 - Cut Pointer Events over to RFPTarget. r=tjr 2023-03-31 07:53:08 +00:00
PointerEvent.h Bug 1809774: Simplify PointerEvent.webidl because RFP doesn't need the callertype r=edgar 2023-02-07 23:53:19 +00:00
PointerEventHandler.cpp Bug 1809775: Cut Pointer ID spoofing over to new fine-grained RFP checks r=edgar 2023-01-17 19:16:51 +00:00
PointerEventHandler.h
RemoteDragStartData.cpp Bug 1809122 - Track top-level window context in DragSession; r=smaug 2023-02-13 18:44:04 +00:00
RemoteDragStartData.h Bug 1809122 - Track top-level window context in DragSession; r=smaug 2023-02-13 18:44:04 +00:00
ScrollAreaEvent.cpp Bug 1757929 - Remove a bunch of IPC headers from gfxFont and co. r=jfkthame,layout-reviewers 2022-05-05 11:37:51 +00:00
ScrollAreaEvent.h Bug 1768189 - Part 10: Apply modernize-concat-nested-namespaces to dom/events/PaintRequest.h ... r=andi 2022-05-09 20:41:07 +00:00
ShortcutKeyDefinitions.cpp Bug 968104, paste unformatted shortcut (shift+ctrl/cmd+v) should work in plain text contexts, such as input and textarea, r=masayuki 2022-07-11 08:58:35 +00:00
ShortcutKeys.cpp
ShortcutKeys.h
SimpleGestureEvent.cpp Bug 1807812 - Remove WidgetEventTime::mTime, r=masayuki,geckoview-reviewers,m_kato 2023-01-02 12:31:40 +00:00
SimpleGestureEvent.h Bug 1768189 - Part 10: Apply modernize-concat-nested-namespaces to dom/events/PaintRequest.h ... r=andi 2022-05-09 20:41:07 +00:00
SpeechRecognitionError.cpp
SpeechRecognitionError.h Bug 1768189 - Part 10: Apply modernize-concat-nested-namespaces to dom/events/PaintRequest.h ... r=andi 2022-05-09 20:41:07 +00:00
StorageEvent.cpp
StorageEvent.h Bug 1768189 - Part 10: Apply modernize-concat-nested-namespaces to dom/events/PaintRequest.h ... r=andi 2022-05-09 20:41:07 +00:00
TextClause.cpp
TextClause.h Bug 1777574, automate CC zone handling, r=mccr8 2022-09-07 11:22:51 +00:00
TextComposition.cpp Bug 1797796 - Make `eSetSelection` event not handled if `Selection` is set to same offset and length r=m_kato 2023-03-01 05:57:32 +00:00
TextComposition.h Bug 1813148 - Don't return already_AddRefed in nsPresContext::GetRootWidget. r=dholbert 2023-01-27 19:50:59 +00:00
Touch.cpp Bug 1815307: Cut over Touch Events to the RFP-per-target architecture r=timhuang 2023-03-21 14:14:48 +00:00
Touch.h Bug 1810964 - Replace callers of nsContentUtils::ResistFingerprinting. r=tjr,emilio 2023-01-23 11:52:56 +00:00
TouchEvent.cpp Bug 1807812 - Remove WidgetEventTime::mTime, r=masayuki,geckoview-reviewers,m_kato 2023-01-02 12:31:40 +00:00
TouchEvent.h Bug 1777574, automate CC zone handling, r=mccr8 2022-09-07 11:22:51 +00:00
TransitionEvent.cpp Bug 1807812 - Remove WidgetEventTime::mTime, r=masayuki,geckoview-reviewers,m_kato 2023-01-02 12:31:40 +00:00
TransitionEvent.h Bug 1768189 - Part 10: Apply modernize-concat-nested-namespaces to dom/events/PaintRequest.h ... r=andi 2022-05-09 20:41:07 +00:00
UIEvent.cpp Bug 1807812 - Remove WidgetEventTime::mTime, r=masayuki,geckoview-reviewers,m_kato 2023-01-02 12:31:40 +00:00
UIEvent.h Bug 1768189 - Part 10: Apply modernize-concat-nested-namespaces to dom/events/PaintRequest.h ... r=andi 2022-05-09 20:41:07 +00:00
VirtualKeyCodeList.h
WheelEvent.cpp Bug 1807812 - Remove WidgetEventTime::mTime, r=masayuki,geckoview-reviewers,m_kato 2023-01-02 12:31:40 +00:00
WheelEvent.h Bug 1768189 - Part 10: Apply modernize-concat-nested-namespaces to dom/events/PaintRequest.h ... r=andi 2022-05-09 20:41:07 +00:00
WheelHandlingHelper.cpp Bug 1825825 - Simplify NAC setup. r=smaug 2023-04-05 09:19:15 +00:00
WheelHandlingHelper.h Bug 1168182 - Bind wheel event targets to wheel transactions. r=masayuki,smaug 2023-03-20 12:19:36 +00:00
XULCommandEvent.cpp Bug 1807812 - Remove WidgetEventTime::mTime, r=masayuki,geckoview-reviewers,m_kato 2023-01-02 12:31:40 +00:00
XULCommandEvent.h Bug 1768189 - Part 10: Apply modernize-concat-nested-namespaces to dom/events/PaintRequest.h ... r=andi 2022-05-09 20:41:07 +00:00
moz.build Bug 1776843 - Part 1: Move clipboard tests to dom/events/test/clipboard/; r=smaug 2022-08-18 07:58:22 +00:00
nsIEventListenerService.idl Bug 1802288 - remove trailing whitespaces in idl/webidl files r=credential-management-reviewers,webidl,smaug,sgalich 2022-12-28 09:52:44 +00:00