gecko-dev/dom/events
Masayuki Nakano 91e18f14d8 Bug 1760160 - Make `ContentCacheInChild` stop storing content if editable element has already been blurred r=m_kato
It's designed for caching content information of focused editor.  However, at
sending focus notification to the main process, the editor may have already
been blurred but `IMEContentObserver` may have not known it yet.  In this edge
case, only query selection succeeds since IMEContentObserver still has a cache,
but query the others failed because of root content node check of
`IMEContentObserver::HandleQueryContentEvent`.  If a content process meets this
case, it should not send focus notification and stop storing the content since
IME shouldn't get focus nor query non-editable content.

On the other hand, the reported testcase reproduces this with a fuzzing API
called **in** the content process. Therefore, I have no idea how to reproduce
it without the API. That's the reason why this patch does not contain new tests.

Differential Revision: https://phabricator.services.mozilla.com/D141821
2022-04-07 00:58:49 +00:00
..
crashtests Bug 1692068 - Disable broken crashtests on tsan. r=necko-reviewers,decoder,dragana 2021-05-25 01:15:49 +00:00
test Bug 1753696 - Automatic rewrite: replace add_task(setup with add_setup in browser mochitest, r=Standard8,webcompat-reviewers,twisniewski 2022-03-30 16:16:42 +00:00
AnimationEvent.cpp
AnimationEvent.h
AsyncEventDispatcher.cpp Bug 1455514 - part 1: Add accessors and static helper methods to retrieve `nsINode` or its concrete classes from `EventTarget` r=smaug 2021-11-02 13:03:43 +00:00
AsyncEventDispatcher.h
BeforeUnloadEvent.cpp
BeforeUnloadEvent.h
Clipboard.cpp Bug 1472338: part 2) Change `clipboard.readText()` to read from the clipboard asynchronously when called from content. r=NeilDeakin,mccr8 2022-02-25 09:35:46 +00:00
Clipboard.h Bug 1472338: part 2) Change `clipboard.readText()` to read from the clipboard asynchronously when called from content. r=NeilDeakin,mccr8 2022-02-25 09:35:46 +00:00
ClipboardEvent.cpp
ClipboardEvent.h
ClipboardItem.cpp
ClipboardItem.h
CommandEvent.cpp
CommandEvent.h
CompositionEvent.cpp
CompositionEvent.h Bug 1723050 - Part 9: Replace typedef by using in dom/events/ r=masayuki 2021-08-07 10:36:35 +00:00
ConstructibleEventTarget.cpp
ConstructibleEventTarget.h
ContentEventHandler.cpp Bug 1760160 - Make `ContentCacheInChild` stop storing content if editable element has already been blurred r=m_kato 2022-04-07 00:58:49 +00:00
ContentEventHandler.h Bug 1746104 - part 7: Make `eQuerySelectedText` event and `ContentEventHandler` work with no selection ranges r=m_kato 2022-02-07 22:33:41 +00:00
CustomEvent.cpp Bug 1712725 - Stop clearing JS things when calling mozilla::DropJSObjects. r=mccr8 2021-05-27 08:35:40 +00:00
CustomEvent.h
DOMEventTargetHelper.cpp Bug 1754767 - Remove duplicate includes r=media-playback-reviewers,padenot 2022-02-11 10:01:15 +00:00
DOMEventTargetHelper.h Bug 1745950 - Remove the string-based KeepAliveIfHasListenersFor() implementation and convert all callers to use the atoms-based one instead r=smaug 2021-12-14 16:54:50 +00:00
DataTransfer.cpp Bug 1760560 - Remove directory upload API; r=smaug 2022-04-04 09:54:34 +00:00
DataTransfer.h Bug 1760560 - Remove directory upload API; r=smaug 2022-04-04 09:54:34 +00:00
DataTransferItem.cpp Backed out changeset 00f6bd7aa727 (bug 1755481) for causing multiple clipboard related failures CLOSED TREE 2022-02-16 12:14:58 +02:00
DataTransferItem.h Bug 1472338: part 2) Change `clipboard.readText()` to read from the clipboard asynchronously when called from content. r=NeilDeakin,mccr8 2022-02-25 09:35:46 +00:00
DataTransferItemList.cpp Bug 1737041 - DataTransfer.types should include 'Files'. r=masayuki 2021-11-11 09:59:42 +00:00
DataTransferItemList.h Bug 1756164: part 1) Document "hidden" `DataTransferItem`s. r=mccr8 2022-02-24 10:29:25 +00:00
DeviceMotionEvent.cpp
DeviceMotionEvent.h
DragEvent.cpp
DragEvent.h
Event.cpp Bug 1760807: encapsulate return type of `Event::GetScreenCoords` in a `Maybe<>`. r=edgar 2022-03-23 09:19:03 +00:00
Event.h Bug 1760807: encapsulate return type of `Event::GetScreenCoords` in a `Maybe<>`. r=edgar 2022-03-23 09:19:03 +00:00
EventDispatcher.cpp Bug 1758752 - Describe the event target in DOMEvent profiler markers, r=mstange. 2022-03-11 07:49:03 +00:00
EventDispatcher.h Bug 1539884 - Part 38: Mark EventDispatcher::Dispatch as CAN_RUN_SCRIPT r=masayuki 2021-12-23 16:27:26 +00:00
EventListenerManager.cpp Bug 1742437 - re-scope all generic module/script loader files under js/loader; r=jonco 2022-02-21 15:39:09 +00:00
EventListenerManager.h Bug 1735745 - Make `SelectionChangeEventDispatcher` dispatch `select` event and `selectchange` event only when there may be corresponding event listeners r=smaug 2021-11-25 07:09:23 +00:00
EventListenerService.cpp Bug 1455514 - part 1: Add accessors and static helper methods to retrieve `nsINode` or its concrete classes from `EventTarget` r=smaug 2021-11-02 13:03:43 +00:00
EventListenerService.h Bug 1720574 - Add a way to disable event listeners, r=edgar,Honza 2021-07-16 12:04:37 +00:00
EventNameList.h Bug 1744315 - P1: Introduce chrome-only MozMouseExploreByTouch event. r=botond 2021-12-28 20:41:22 +00:00
EventStateManager.cpp Bug 1762653 - Expose EventStateManager::IsKeyboardEventUserActivity on nsIDOMWindowUtils. r=smaug 2022-04-04 13:33:35 +00:00
EventStateManager.h Bug 1762653 - Expose EventStateManager::IsKeyboardEventUserActivity on nsIDOMWindowUtils. r=smaug 2022-04-04 13:33:35 +00:00
EventStates.h Bug 502258 - Add a Show Password button to <input type=password> controls. r=Gijs 2021-11-25 20:12:05 +00:00
EventTarget.cpp Bug 1455514 - part 2: Add accessors and static helper methods to retrieve `nsPIDOMWindowInner`, `nsPIDOMWindowOuter` and `nsPIWindowRoot` r=smaug 2021-11-02 13:03:43 +00:00
EventTarget.h Bug 1743439 - Part 5: Mark callers in dom/events and dom/html as MOZ_CAN_RUN_SCRIPT_BOUNDARY r=masayuki 2021-12-09 19:56:09 +00:00
FocusEvent.cpp
FocusEvent.h
GlobalKeyListener.cpp Bug 1191862 - part 3: Make `GlobalKeyListener` not reserve key combination which is mapped to an edit command or a navigation command by native key bindings r=NeilDeakin,smaug 2022-02-15 08:00:06 +00:00
GlobalKeyListener.h
IMEContentObserver.cpp Bug 1760160 - Make `ContentCacheInChild` stop storing content if editable element has already been blurred r=m_kato 2022-04-07 00:58:49 +00:00
IMEContentObserver.h Bug 1729115 - part 1: Make it possible tests to retrieve a node being observed by `IMEContentObserver` for the following changes r=smaug 2021-10-12 04:41:13 +00:00
IMEStateManager.cpp Bug 1191862 - part 3: Make `GlobalKeyListener` not reserve key combination which is mapped to an edit command or a navigation command by native key bindings r=NeilDeakin,smaug 2022-02-15 08:00:06 +00:00
IMEStateManager.h Bug 1729115 - part 3: Make `IMEStateManager` check whether given focused content matches with null `sContent` in design mode r=m_kato 2021-10-12 04:41:14 +00:00
ImageCaptureError.cpp
ImageCaptureError.h
InputEvent.cpp Bug 1725145 - header files fixes in the hybrid build env. r=valentin 2021-08-22 10:21:55 +00:00
InputEvent.h
InputEventOptions.h
InputTypeList.h
InternalMutationEvent.h
JSEventHandler.cpp
JSEventHandler.h
KeyEventHandler.cpp Bug 1455514 - part 2: Add accessors and static helper methods to retrieve `nsPIDOMWindowInner`, `nsPIDOMWindowOuter` and `nsPIWindowRoot` r=smaug 2021-11-02 13:03:43 +00:00
KeyEventHandler.h
KeyNameList.h
KeyboardEvent.cpp Bug 1450398: Apply finer-grained RFP checks to Keyboard Event r=tjr 2021-10-05 13:57:36 +00:00
KeyboardEvent.h Bug 1727024 - Make `KeyboardEvent.initKeyEvent` is available in addons r=smaug 2021-08-24 09:52:23 +00:00
MessageEvent.cpp Bug 1712725 - Stop clearing JS things when calling mozilla::DropJSObjects. r=mccr8 2021-05-27 08:35:40 +00:00
MessageEvent.h
MouseEvent.cpp Bug 1760807: encapsulate return type of `Event::GetScreenCoords` in a `Maybe<>`. r=edgar 2022-03-23 09:19:03 +00:00
MouseEvent.h Bug 1756323 - Cleanup mouse event coord code. r=jfkthame 2022-02-21 11:53:02 +00:00
MouseScrollEvent.cpp
MouseScrollEvent.h
MutationEvent.cpp
MutationEvent.h
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 1754037 - Part 3c: Automatically update all ParamTraits implementations, r=ipc-reviewers,media-playback-reviewers,bryce,mccr8 2022-03-04 15:39:41 +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
PendingFullscreenEvent.h Bug 1679522 - Fix include directives and forward declarations. r=andi,necko-reviewers,jgilbert 2021-03-25 10:19:44 +00:00
PhysicalKeyCodeNameList.h
PointerEvent.cpp Bug 1750994 - PointerEvent.constructor should not modify the target of the events which are passed as coalesced or predicted events, r=edgar 2022-01-20 09:09:47 +00:00
PointerEvent.h Bug 1728626 - PointerEvent.pointerType should be allowed to be arbitrary from constructor; r=smaug 2021-09-03 15:04:56 +00:00
PointerEventHandler.cpp Bug 1455514 - part 1: Add accessors and static helper methods to retrieve `nsINode` or its concrete classes from `EventTarget` r=smaug 2021-11-02 13:03:43 +00:00
PointerEventHandler.h Bug 1511231 - Part 2: Make PointerEventHandler::InitPointerEventFromTouch take references; r=smaug 2021-08-19 13:27:12 +00:00
RemoteDragStartData.cpp Bug 1727176, use window contexts for the drag and drop source, r=smaug 2021-08-31 00:58:34 +00:00
RemoteDragStartData.h Bug 1727176, use window contexts for the drag and drop source, r=smaug 2021-08-31 00:58:34 +00:00
ScrollAreaEvent.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
ScrollAreaEvent.h 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
ShortcutKeyDefinitions.cpp Bug 1376091 - For MOZ_WIDGET_GTK, change shortcut for `cmd_selectAll` from Alt+A to Ctrl+A. r=masayuki 2021-11-23 18:37:41 +00:00
ShortcutKeys.cpp
ShortcutKeys.h Bug 1723050 - Part 9: Replace typedef by using in dom/events/ r=masayuki 2021-08-07 10:36:35 +00:00
SimpleGestureEvent.cpp
SimpleGestureEvent.h
SpeechRecognitionError.cpp
SpeechRecognitionError.h
StorageEvent.cpp
StorageEvent.h
TextClause.cpp
TextClause.h
TextComposition.cpp Bug 1758420 - part 3: Rename `TextComposition::GetStartRef()` and `TextComposition::GetEndRef()` r=m_kato 2022-03-18 06:34:47 +00:00
TextComposition.h Bug 1758420 - part 3: Rename `TextComposition::GetStartRef()` and `TextComposition::GetEndRef()` r=m_kato 2022-03-18 06:34:47 +00:00
Touch.cpp Bug 1760807: encapsulate return type of `Event::GetScreenCoords` in a `Maybe<>`. r=edgar 2022-03-23 09:19:03 +00:00
Touch.h Bug 1712825 - Allow coalescing touchmove events in BrowserChild r=smaug 2021-06-07 15:29:15 +00:00
TouchEvent.cpp Bug 1455514 - part 1: Add accessors and static helper methods to retrieve `nsINode` or its concrete classes from `EventTarget` r=smaug 2021-11-02 13:03:43 +00:00
TouchEvent.h Bug 1701796: Move IsTouchDeviceSupportPresent to LookAndFeel remoting to prevent win32k usage in the content process. r=emilio,geckoview-reviewers,owlish 2021-08-25 14:32:13 +00:00
TransitionEvent.cpp
TransitionEvent.h
UIEvent.cpp Bug 1760807: encapsulate return type of `Event::GetScreenCoords` in a `Maybe<>`. r=edgar 2022-03-23 09:19:03 +00:00
UIEvent.h 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
VirtualKeyCodeList.h
WheelEvent.cpp Bug 1708829 - Make sure that delta* getters account for scroll speed override correctly. r=masayuki 2021-05-14 17:44:29 +00:00
WheelEvent.h Bug 1708829 - Expose WheelEvent.wheelDelta{,X,Y} for compat with other engines. r=masayuki 2021-05-14 15:17:33 +00:00
WheelHandlingHelper.cpp Bug 1708829 - Make sure that delta* getters account for scroll speed override correctly. r=masayuki 2021-05-14 17:44:29 +00:00
WheelHandlingHelper.h Bug 1708829 - Make sure that delta* getters account for scroll speed override correctly. r=masayuki 2021-05-14 17:44:29 +00:00
XULCommandEvent.cpp Bug 1704948 - Give XULCommandEvent a button property. r=smaug,preferences-reviewers 2021-04-20 17:44:16 +00:00
XULCommandEvent.h Bug 1704948 - Give XULCommandEvent a button property. r=smaug,preferences-reviewers 2021-04-20 17:44:16 +00:00
moz.build Bug 1738401 - Remove -Wno-shadow warning suppressions. r=firefox-build-system-reviewers,glandium 2021-12-01 06:40:04 +00:00
nsIEventListenerService.idl Bug 1539884 - Part 7: Mark nsIEventListenerService::getEventTargetChainFor as can_run_script r=masayuki 2021-12-16 17:17:06 +00:00