gecko-dev/dom/html
Masayuki Nakano 340301eec4 Bug 1743346 - Make `TextInputHandler::HandleEvent` handle native key bindings first, then, our shortcut keys r=smaug
Oddly, `TextInputHandler` which is keyboard event handler for
`<input type="text">` and `<textarea>` handles our shortcut keys
first, then, refer native key bindings.  So if a key combination
matches in both definitions, our shortcut key wins.

On the other hand, if `HTMLEditor` has focus, `keypress` event
listener on the `Document` node hanldes native key bindings:
https://searchfox.org/mozilla-central/rev/70b32246fce5ca1f53af573a21c1939df58cb969/editor/libeditor/EditorEventListener.cpp#641-644

Then, global key listener will be run later:
https://searchfox.org/mozilla-central/rev/70b32246fce5ca1f53af573a21c1939df58cb969/dom/events/GlobalKeyListener.cpp#163-164

Perhaps, it's better to refer native key bindings first because
unusual shortcut key definition must be caused by customization
by the user in the system level.

Therefore, this patch makes the order switchable with the new
pref for making it easier to back it out.

Differential Revision: https://phabricator.services.mozilla.com/D132451
2021-12-03 11:57:29 +00:00
..
crashtests Bug 1724816 - Check the focused window still persists after MoveCaretToFocus r=smaug 2021-08-16 18:51:26 +00:00
input Bug 1738401 - Remove -Wno-shadow warning suppressions. r=firefox-build-system-reviewers,glandium 2021-12-01 06:40:04 +00:00
reftests Bug 1733945 - Simplify reftest annotations to assume skiaContent == true. r=jrmuizel 2021-10-04 15:19:10 +00:00
test Bug 1743048 - Tweak a bit test_input_password_show_password_button.html. 2021-11-26 13:16:55 +00:00
ConstraintValidation.cpp Bug 1556364 - Part 2-1: Split nsGenericHTMLFormControlElement-only members from nsIConstraintValidation to a separated class; r=smaug 2021-11-26 11:47:39 +00:00
ConstraintValidation.h Bug 1556364 - Part 2-1: Split nsGenericHTMLFormControlElement-only members from nsIConstraintValidation to a separated class; r=smaug 2021-11-26 11:47:39 +00:00
ElementInternals.cpp Bug 1556364 - Part 4: Support updating valid/invalid state on form-associated custom elements; r=smaug 2021-11-26 11:47:40 +00:00
ElementInternals.h Bug 1556364 - Part 3: Implement setValidity() of ElementInternals; r=smaug 2021-11-26 11:47:40 +00:00
HTMLAllCollection.cpp Bug 1725145 - header files fixes in the hybrid build env. r=valentin 2021-08-22 10:21:55 +00:00
HTMLAllCollection.h Bug 1725145 - header files fixes in the hybrid build env. r=valentin 2021-08-22 10:21:55 +00:00
HTMLAnchorElement.cpp
HTMLAnchorElement.h
HTMLAreaElement.cpp
HTMLAreaElement.h
HTMLAudioElement.cpp
HTMLAudioElement.h
HTMLBRElement.cpp
HTMLBRElement.h
HTMLBodyElement.cpp Bug 1713758 - Make everyone outside editor module use `EditorBase` instead of `TextEditor` if the instance can be an `HTMLEditor` instance r=m_kato 2021-06-09 23:51:37 +00:00
HTMLBodyElement.h Bug 1713758 - Make everyone outside editor module use `EditorBase` instead of `TextEditor` if the instance can be an `HTMLEditor` instance r=m_kato 2021-06-09 23:51:37 +00:00
HTMLButtonElement.cpp Bug 1556364 - Part 2-1: Split nsGenericHTMLFormControlElement-only members from nsIConstraintValidation to a separated class; r=smaug 2021-11-26 11:47:39 +00:00
HTMLButtonElement.h Bug 1556364 - Part 2-1: Split nsGenericHTMLFormControlElement-only members from nsIConstraintValidation to a separated class; r=smaug 2021-11-26 11:47:39 +00:00
HTMLCanvasElement.cpp Bug 1736236 - Remove obsolete LayerManager.h. r=gfx-reviewers,lsalzman 2021-10-17 23:00:47 +00:00
HTMLCanvasElement.h Bug 1728903 - Remove plumbing for CanvasLayer and ImageLayer. r=mattwoodrow 2021-09-18 11:44:51 +00:00
HTMLDNSPrefetch.cpp
HTMLDNSPrefetch.h
HTMLDataElement.cpp
HTMLDataElement.h
HTMLDataListElement.cpp Bug 1737364 - Part 2: Elements should be barred from constraint validation if it has a datalist element ancestor; r=smaug 2021-11-03 20:07:43 +00:00
HTMLDataListElement.h Bug 1737364 - Part 2: Elements should be barred from constraint validation if it has a datalist element ancestor; r=smaug 2021-11-03 20:07:43 +00:00
HTMLDetailsElement.cpp
HTMLDetailsElement.h
HTMLDialogElement.cpp Bug 1740971, use a raw pointer for fast iteration, r=sefeng 2021-11-15 13:13:47 +00:00
HTMLDialogElement.h Bug 1660271 - Move the focus to the previously focused element when <dialog> is closed r=smaug 2021-04-29 19:35:23 +00:00
HTMLDivElement.cpp
HTMLDivElement.h
HTMLElement.cpp Bug 1556364 - Part 4: Support updating valid/invalid state on form-associated custom elements; r=smaug 2021-11-26 11:47:40 +00:00
HTMLElement.h Bug 1556364 - Part 4: Support updating valid/invalid state on form-associated custom elements; r=smaug 2021-11-26 11:47:40 +00:00
HTMLEmbedElement.cpp Bug 1666184 - Defer loading object when setting attribute; r=nika 2021-07-14 14:46:12 +00:00
HTMLEmbedElement.h Bug 1696507 - Remove support for NO_UNLINK version of cycle collector macros. r=smaug 2021-03-10 19:50:40 +00:00
HTMLFieldSetElement.cpp Bug 1556351 - Part 9: Implement FACE upgrade; r=smaug 2021-10-04 20:51:28 +00:00
HTMLFieldSetElement.h Bug 1556364 - Part 2-1: Split nsGenericHTMLFormControlElement-only members from nsIConstraintValidation to a separated class; r=smaug 2021-11-26 11:47:39 +00:00
HTMLFontElement.cpp
HTMLFontElement.h
HTMLFormControlsCollection.cpp Bug 1556351 - Part 9: Implement FACE upgrade; r=smaug 2021-10-04 20:51:28 +00:00
HTMLFormControlsCollection.h Bug 1556351 - Part 5: Make nsGenericHTMLFormControlElement implement nsIFormControl; r=smaug 2021-10-04 20:51:27 +00:00
HTMLFormElement.cpp Bug 1740230 - Remove some prefs for pseudo-classes that we have shipped/unshipped successfully. r=dholbert 2021-11-10 13:27:47 +00:00
HTMLFormElement.h Bug 1740230 - Remove some prefs for pseudo-classes that we have shipped/unshipped successfully. r=dholbert 2021-11-10 13:27:47 +00:00
HTMLFormSubmission.cpp Bug 1603127 - Replaced mozilla::Tuple with std::tuple and applied structured bindings in mozilla/Encoding.h. r=hsivonen 2021-11-08 08:14:00 +00:00
HTMLFormSubmission.h Bug 1721349 - Move mSubmitter from HTMLFormSubmission to FormData and make it participate in cycle collection; r=mccr8 2021-07-21 09:52:20 +00:00
HTMLFormSubmissionConstants.h Bug 1728081 - Part 3: Merge nsIForm into HTMLFormElement; r=smaug 2021-08-30 18:44:51 +00:00
HTMLFrameElement.cpp
HTMLFrameElement.h
HTMLFrameSetElement.cpp
HTMLFrameSetElement.h
HTMLHRElement.cpp
HTMLHRElement.h
HTMLHeadingElement.cpp
HTMLHeadingElement.h
HTMLIFrameElement.cpp
HTMLIFrameElement.h
HTMLImageElement.cpp Bug 1710283 - Null-check lazyload intersection observers on unregistration. r=sefeng 2021-05-10 14:53:07 +00:00
HTMLImageElement.h Bug 1709577 - Check list of available images before deciding to defer a lazy load. r=edgar 2021-05-07 13:56:33 +00:00
HTMLInputElement.cpp Bug 1724706 - Remove Obsolete comment in HTMLInputElement::AfterSetFilesOrDirectories.r=smaug 2021-11-29 23:18:27 +00:00
HTMLInputElement.h Bug 1556364 - Part 2-1: Split nsGenericHTMLFormControlElement-only members from nsIConstraintValidation to a separated class; r=smaug 2021-11-26 11:47:39 +00:00
HTMLLIElement.cpp
HTMLLIElement.h
HTMLLabelElement.cpp Bug 1723010 - Part 2: Stop iterating to find next element for an accesskey once the accesskey has been processed; r=masayuki 2021-08-20 19:32:43 +00:00
HTMLLabelElement.h Bug 1723010 - Part 2: Stop iterating to find next element for an accesskey once the accesskey has been processed; r=masayuki 2021-08-20 19:32:43 +00:00
HTMLLegendElement.cpp Bug 1723010 - Part 2: Stop iterating to find next element for an accesskey once the accesskey has been processed; r=masayuki 2021-08-20 19:32:43 +00:00
HTMLLegendElement.h Bug 1723010 - Part 2: Stop iterating to find next element for an accesskey once the accesskey has been processed; r=masayuki 2021-08-20 19:32:43 +00:00
HTMLLinkElement.cpp Backed out 2 changesets (bug 1737694) for causing web platform tests failures on autocapitalize.html CLOSED TREE 2021-10-27 10:50:15 -04:00
HTMLLinkElement.h
HTMLMapElement.cpp Bug 1696507 - Remove support for NO_UNLINK version of cycle collector macros. r=smaug 2021-03-10 19:50:40 +00:00
HTMLMapElement.h Bug 1696507 - Remove support for NO_UNLINK version of cycle collector macros. r=smaug 2021-03-10 19:50:40 +00:00
HTMLMarqueeElement.cpp
HTMLMarqueeElement.h
HTMLMediaElement.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
HTMLMediaElement.h Bug 1678373 - Add a way to measure the duration a media was muted. r=alwu,webidl,emilio 2021-10-12 09:03:53 +00:00
HTMLMenuBuilder.jsm
HTMLMenuElement.cpp
HTMLMenuElement.h
HTMLMenuItemElement.cpp
HTMLMenuItemElement.h
HTMLMetaElement.cpp Bug 1525107 - Implement <meta name=color-scheme>. r=dholbert 2021-10-29 19:58:24 +00:00
HTMLMetaElement.h Bug 1525107 - Implement <meta name=color-scheme>. r=dholbert 2021-10-29 19:58:24 +00:00
HTMLMeterElement.cpp
HTMLMeterElement.h
HTMLModElement.cpp
HTMLModElement.h
HTMLObjectElement.cpp Bug 1732845 - Add `nsINode::IsInDesignMode()` to check whether the node is directly in design mode r=smaug 2021-10-12 03:14:43 +00:00
HTMLObjectElement.h Bug 1556364 - Part 2-1: Split nsGenericHTMLFormControlElement-only members from nsIConstraintValidation to a separated class; r=smaug 2021-11-26 11:47:39 +00:00
HTMLOptGroupElement.cpp Bug 1733384 - Make inert not modify the computed style. r=sefeng,layout-reviewers,jfkthame 2021-10-07 17:00:36 +00:00
HTMLOptGroupElement.h Bug 1685421 - Part 2: Stop using NS_ERROR_DOM_HIERARCHY_REQUEST_ERR in nsINode; r=smaug 2021-06-02 13:43:39 +00:00
HTMLOptionElement.cpp Bug 1728081 - Part 3: Merge nsIForm into HTMLFormElement; r=smaug 2021-08-30 18:44:51 +00:00
HTMLOptionElement.h
HTMLOptionsCollection.cpp Bug 1728081 - Part 3: Merge nsIForm into HTMLFormElement; r=smaug 2021-08-30 18:44:51 +00:00
HTMLOptionsCollection.h
HTMLOutputElement.cpp Bug 1556364 - Part 2-1: Split nsGenericHTMLFormControlElement-only members from nsIConstraintValidation to a separated class; r=smaug 2021-11-26 11:47:39 +00:00
HTMLOutputElement.h Bug 1556364 - Part 2-1: Split nsGenericHTMLFormControlElement-only members from nsIConstraintValidation to a separated class; r=smaug 2021-11-26 11:47:39 +00:00
HTMLParagraphElement.cpp
HTMLParagraphElement.h
HTMLPictureElement.cpp Bug 1685421 - Part 2: Stop using NS_ERROR_DOM_HIERARCHY_REQUEST_ERR in nsINode; r=smaug 2021-06-02 13:43:39 +00:00
HTMLPictureElement.h Bug 1685421 - Part 2: Stop using NS_ERROR_DOM_HIERARCHY_REQUEST_ERR in nsINode; r=smaug 2021-06-02 13:43:39 +00:00
HTMLPreElement.cpp
HTMLPreElement.h
HTMLProgressElement.cpp
HTMLProgressElement.h
HTMLScriptElement.cpp Bug 1729239 - Implement HTMLScriptElement.supports(type) method. r=smaug 2021-09-27 12:49:51 +00:00
HTMLScriptElement.h Bug 1729239 - Implement HTMLScriptElement.supports(type) method. r=smaug 2021-09-27 12:49:51 +00:00
HTMLSelectElement.cpp Bug 1556364 - Part 2-1: Split nsGenericHTMLFormControlElement-only members from nsIConstraintValidation to a separated class; r=smaug 2021-11-26 11:47:39 +00:00
HTMLSelectElement.h Bug 1556364 - Part 2-1: Split nsGenericHTMLFormControlElement-only members from nsIConstraintValidation to a separated class; r=smaug 2021-11-26 11:47:39 +00:00
HTMLSharedElement.cpp
HTMLSharedElement.h
HTMLSharedListElement.cpp Bug 1706346 part 1 - [css-lists] Style system changes to support 'reversed(<counter-name>)'. r=emilio 2021-11-14 03:49:35 +00:00
HTMLSharedListElement.h
HTMLSlotElement.cpp Bug 1705141 - Implement imperative slotting API r=smaug,emilio 2021-07-20 18:06:25 +00:00
HTMLSlotElement.h Bug 1705141 - Implement imperative slotting API r=smaug,emilio 2021-07-20 18:06:25 +00:00
HTMLSourceElement.cpp
HTMLSourceElement.h
HTMLSpanElement.cpp
HTMLSpanElement.h
HTMLStyleElement.cpp
HTMLStyleElement.h
HTMLSummaryElement.cpp Bug 1481400 - Centralize keyboard activation code. r=masayuki 2021-06-03 08:15:24 +00:00
HTMLSummaryElement.h
HTMLTableCaptionElement.cpp
HTMLTableCaptionElement.h
HTMLTableCellElement.cpp
HTMLTableCellElement.h
HTMLTableColElement.cpp
HTMLTableColElement.h
HTMLTableElement.cpp Bug 1725145 - header files fixes in the hybrid build env. r=valentin 2021-08-22 10:21:55 +00:00
HTMLTableElement.h Bug 1685421 - Part 4: Stop using NS_ERROR_DOM_HIERARCHY_REQUEST_ERR in HTMLTableElement; r=smaug 2021-06-02 13:43:40 +00:00
HTMLTableRowElement.cpp Bug 1696507 - Remove support for NO_UNLINK version of cycle collector macros. r=smaug 2021-03-10 19:50:40 +00:00
HTMLTableRowElement.h Bug 1696507 - Remove support for NO_UNLINK version of cycle collector macros. r=smaug 2021-03-10 19:50:40 +00:00
HTMLTableSectionElement.cpp Bug 1696507 - Remove support for NO_UNLINK version of cycle collector macros. r=smaug 2021-03-10 19:50:40 +00:00
HTMLTableSectionElement.h Bug 1696507 - Remove support for NO_UNLINK version of cycle collector macros. r=smaug 2021-03-10 19:50:40 +00:00
HTMLTemplateElement.cpp
HTMLTemplateElement.h
HTMLTextAreaElement.cpp Bug 1556364 - Part 2-1: Split nsGenericHTMLFormControlElement-only members from nsIConstraintValidation to a separated class; r=smaug 2021-11-26 11:47:39 +00:00
HTMLTextAreaElement.h Bug 1556364 - Part 2-1: Split nsGenericHTMLFormControlElement-only members from nsIConstraintValidation to a separated class; r=smaug 2021-11-26 11:47:39 +00:00
HTMLTimeElement.cpp
HTMLTimeElement.h
HTMLTitleElement.cpp
HTMLTitleElement.h
HTMLTrackElement.cpp
HTMLTrackElement.h
HTMLUnknownElement.cpp
HTMLUnknownElement.h
HTMLVideoElement.cpp Bug 1700640 - Map width and height to aspect-ratio in <canvas>, <input type=image>, and <video>. r=boris 2021-03-24 22:18:55 +00:00
HTMLVideoElement.h
ImageDocument.cpp Bug 1685421 - Part 2: Stop using NS_ERROR_DOM_HIERARCHY_REQUEST_ERR in nsINode; r=smaug 2021-06-02 13:43:39 +00:00
ImageDocument.h
MediaDocument.cpp Bug 1724243 - Make text/plain and MediaDocuments use the Standards Mode. r=smaug,emilio 2021-10-01 12:55:28 +00:00
MediaDocument.h Bug 1691889 - Replace MOZ_MUST_USE with [[nodiscard]] in dom/. r=peterv 2021-03-10 08:19:25 +00:00
MediaError.cpp
MediaError.h
PlayPromise.cpp
PlayPromise.h
RadioNodeList.cpp Bug 1715134 - Make form control type an enum class. r=masayuki 2021-06-08 09:43:59 +00:00
RadioNodeList.h
TextControlElement.h Bug 1556351 - Part 3: Rename nsGenericHTMLFormElementWithState to nsGenericHTMLFormControlElementWithState; r=smaug 2021-10-04 20:51:26 +00:00
TextControlState.cpp Bug 1743346 - Make `TextInputHandler::HandleEvent` handle native key bindings first, then, our shortcut keys r=smaug 2021-12-03 11:57:29 +00:00
TextControlState.h Bug 1676702 - part 3: Make `TextControlState` store unmasked range while it does not have `TextEditor` r=m_kato 2021-06-28 04:37:54 +00:00
TextInputListener.h Bug 1698315 - Manage placeholder and autofill preview visibility using CSS rather than custom code. r=masayuki 2021-03-15 08:52:43 +00:00
TextTrackManager.cpp
TextTrackManager.h
TimeRanges.cpp
TimeRanges.h
ValidityState.cpp
ValidityState.h
VideoDocument.cpp Bug 1685421 - Part 2: Stop using NS_ERROR_DOM_HIERARCHY_REQUEST_ERR in nsINode; r=smaug 2021-06-02 13:43:39 +00:00
components.conf
moz.build Bug 1738401 - Remove -Wno-shadow warning suppressions. r=firefox-build-system-reviewers,glandium 2021-12-01 06:40:04 +00:00
nsBrowserElement.cpp
nsBrowserElement.h
nsDOMStringMap.cpp
nsDOMStringMap.h
nsGenericHTMLElement.cpp Bug 1586014- Factor out RecompileScriptEventListeners r=emilio 2021-11-04 18:24:58 +00:00
nsGenericHTMLElement.h Bug 1586014- Factor out RecompileScriptEventListeners r=emilio 2021-11-04 18:24:58 +00:00
nsGenericHTMLFrameElement.cpp Bug 1719285 - Make nsFrameLoader::GetExistingDocShell returning nsDocShell; r=smaug 2021-07-06 13:30:08 +00:00
nsGenericHTMLFrameElement.h
nsHTMLContentSink.cpp Bug 1685421 - Part 2: Stop using NS_ERROR_DOM_HIERARCHY_REQUEST_ERR in nsINode; r=smaug 2021-06-02 13:43:39 +00:00
nsHTMLDocument.cpp Bug 1575191- Make callers to Document::SetContentType with ASCII literal using SetContentTypeInternal.. r=hsivonen 2021-11-04 06:47:05 +00:00
nsHTMLDocument.h Bug 1716290 - Remove protections against the document changing as part of kCharsetFromFinalUserForcedAutoDetection reload. r=emk,emilio 2021-08-26 18:02:15 +00:00
nsIConstraintValidation.cpp Bug 1556364 - Part 2-1: Split nsGenericHTMLFormControlElement-only members from nsIConstraintValidation to a separated class; r=smaug 2021-11-26 11:47:39 +00:00
nsIConstraintValidation.h Bug 1556364 - Part 2-1: Split nsGenericHTMLFormControlElement-only members from nsIConstraintValidation to a separated class; r=smaug 2021-11-26 11:47:39 +00:00
nsIFormControl.h Bug 1556351 - Part 9: Implement FACE upgrade; r=smaug 2021-10-04 20:51:28 +00:00
nsIFormSubmitObserver.idl
nsIHTMLCollection.h
nsIMenuBuilder.idl
nsIRadioGroupContainer.h Bug 1708228 - Part 2: Remove redundant flush param from nsIRadioGroupContainer r=smaug 2021-04-30 11:25:23 +00:00
nsIRadioVisitor.h Bug 1727631 - Part 2: Make nsIRadioVisitor and subclasses use HTMLInputElement directly; r=smaug 2021-08-28 18:53:15 +00:00
nsRadioVisitor.cpp Bug 1727631 - Part 2: Make nsIRadioVisitor and subclasses use HTMLInputElement directly; r=smaug 2021-08-28 18:53:15 +00:00
nsRadioVisitor.h Bug 1727631 - Part 2: Make nsIRadioVisitor and subclasses use HTMLInputElement directly; r=smaug 2021-08-28 18:53:15 +00:00