gecko-dev/dom
Emilio Cobos Álvarez 073adf9499 Bug 1524266 - Should be able to delete non-selectable and non-editable content in a contenteditable subtree. r=mats
This makes our behavior a bit closer to Blink / WebKit.

This patch fixes multiple issues:

First, fixes the caret movement getting stuck on a <select> element inside an
editor. This is because of the IsRootOfAnonymousSubtree() check that I'm
removing. Instead of that, consider NAC unselectable in UsedUserSelect, just
like generated content. This makes us jump across it correctly, and doesn't
regress the test-case that was added in bug 989012.

Second, it allows to select nodes with user-select: none as long as you're on an
editor. This matches WebKit and Blink. It's something you could do earlier
regardless with user-select: all on the parent, which is why the reporter's
test-case worked before my patch. I think being able to jump across these and
delete them on an editor is the right thing to do.

It adds tests for all this plus the same thing working for non-editable contents
(there was no pre-existing test for that).

Differential Revision: https://phabricator.services.mozilla.com/D18494
2019-02-04 12:03:32 +01:00
..
abort Bug 1508988 - Enable ESLint for dom/abort/, dom/asmjscache/, dom/battery/, dom/broadcastchannel/ and dom/console/ (manual changes). r=Standard8,nika 2018-12-19 22:39:34 +00:00
animation Bug 1523229 - Don't reference animations from AnimationTimeline just because they're relevant; r=hiro 2019-01-28 08:04:24 +00:00
asmjscache Bug 1516697 - Remove the implementation of the asm.js caching mechanism. (APIs to invoke it still remain in place; they just don't do anything.) r=luke 2019-01-17 12:39:02 -05:00
audiochannel Bug 1517241 - Rename nsIDocument to mozilla::dom::Document. r=smaug 2019-01-03 17:48:33 +01:00
base Bug 1524266 - Should be able to delete non-selectable and non-editable content in a contenteditable subtree. r=mats 2019-02-04 12:03:32 +01:00
battery Bug 1517241 - Rename nsIDocument to mozilla::dom::Document. r=smaug 2019-01-03 17:48:33 +01:00
bindings Bug 1521907 part 5. Start using CheckedUnwrapStatic/Dynamic in XPConnect. r=peterv 2019-02-02 03:24:45 +00:00
broadcastchannel Bug 1521000 - Part 2: Adjust our clang-format rules to include spaces after the hash for nested preprocessor directives r=sylvestre 2019-01-18 10:16:18 +01:00
browser-element Bug 1514340 - Part 2: Break out the content blocking related notifications into nsIWebProgressListener.onContentBlockingEvent(); r=baku,johannh 2019-01-21 09:58:50 -05:00
cache Bug 1520150 - Single InputStreams can serialize themselves as IPCRemoteStreams (pipe) - part 2 - IPCRemoteSteam part of InputStreamParams union, r=smaug 2019-01-28 10:49:13 +01:00
canvas Bug 1372177 - ArrayBufferView error enum depends on func. r=lsalzman 2019-02-02 10:04:43 +00:00
chrome-webidl Backed out 7 changesets (bug 1522210) for build bustage. CLOSED TREE 2019-01-30 21:50:14 +02:00
clients Bug 1514340 - Part 2: Break out the content blocking related notifications into nsIWebProgressListener.onContentBlockingEvent(); r=baku,johannh 2019-01-21 09:58:50 -05:00
commandhandler Bug 1521000 - Part 2: Adjust our clang-format rules to include spaces after the hash for nested preprocessor directives r=sylvestre 2019-01-18 10:16:18 +01:00
console Bug 1518283 - prohibit blank lines at the beginning and end of blocks (eslint padded-blocks) r=mossop,Standard8 2019-01-30 17:26:25 +00:00
credentialmanagement Bug 1518283 - prohibit blank lines at the beginning and end of blocks (eslint padded-blocks) r=mossop,Standard8 2019-01-30 17:26:25 +00:00
crypto Bug 1518283 - prohibit blank lines at the beginning and end of blocks (eslint padded-blocks) r=mossop,Standard8 2019-01-30 17:26:25 +00:00
encoding Bug 1514594: Part 3 - Change ChromeUtils.import API. 2019-01-17 10:18:31 -08:00
events Bug 1523158 - try to make test_bug574663.html a tad more stable, r=kats 2019-01-30 00:02:39 +02:00
fetch Bug 1521000 - Part 2: Adjust our clang-format rules to include spaces after the hash for nested preprocessor directives r=sylvestre 2019-01-18 10:16:18 +01:00
file Bug 1520150 - Single InputStreams can serialize themselves as IPCRemoteStreams (pipe) - part 4 - tests, r=smaug 2019-01-28 10:49:41 +01:00
filehandle Bug 1521000 - Part 2: Adjust our clang-format rules to include spaces after the hash for nested preprocessor directives r=sylvestre 2019-01-18 10:16:18 +01:00
filesystem Bug 1518283 - prohibit blank lines at the beginning and end of blocks (eslint padded-blocks) r=mossop,Standard8 2019-01-30 17:26:25 +00:00
flex Bug 1521604 Part 3: Add a test of parentFlexElement. r=dholbert 2019-02-01 22:30:45 +00:00
gamepad Bug 1521000 - Part 2: Adjust our clang-format rules to include spaces after the hash for nested preprocessor directives r=sylvestre 2019-01-18 10:16:18 +01:00
geolocation Bug 1521000 - Part 2: Adjust our clang-format rules to include spaces after the hash for nested preprocessor directives r=sylvestre 2019-01-18 10:16:18 +01:00
grid Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
html Bug 1523627 - HTMLSourceElement should keep track of its media list even if there's no image next-sibling yet. r=jdm 2019-02-01 15:20:15 +00:00
imptests
indexedDB Bug 1518283 - prohibit blank lines at the beginning and end of blocks (eslint padded-blocks) r=mossop,Standard8 2019-01-30 17:26:25 +00:00
interfaces Bug 1520879 - Port the onContentBlockingEvent notifications inside WebProgressChild.jsm to C++; r=baku 2019-01-25 14:44:09 +00:00
ipc Bug 1524593 - nsISearchService (aka nsIBrowserSearchService, previously) refactor to be mostly an asynchronous, in preparation of WebExtension engines. r=daleharvey 2019-02-02 11:27:21 +00:00
jsurl Bug 1522596 - Remove nsIIPCSerializableURI and move its only member to nsIURI; r=valentin 2019-01-25 13:32:36 +00:00
locales Bug 1514680 - Strictly enforce the MIME type of scripts loaded by importScripts(). r=dveditz 2019-01-30 22:21:26 +00:00
localstorage Bug 1514594: Part 3 - Change ChromeUtils.import API. 2019-01-17 10:18:31 -08:00
manifest Bug 1518283 - prohibit blank lines at the beginning and end of blocks (eslint padded-blocks) r=mossop,Standard8 2019-01-30 17:26:25 +00:00
mathml Bug 1517241 - Rename nsIDocument to mozilla::dom::Document. r=smaug 2019-01-03 17:48:33 +01:00
media Bug 1524500 - P1. Remove partial frames when the starting time falls within the removal interval. r=bryce 2019-02-01 22:58:08 +00:00
messagechannel Bug 1514594: Part 3 - Change ChromeUtils.import API. 2019-01-17 10:18:31 -08:00
midi Bug 1517241 - Rename nsIDocument to mozilla::dom::Document. r=smaug 2019-01-03 17:48:33 +01:00
network Bug 1514594: Part 3 - Change ChromeUtils.import API. 2019-01-17 10:18:31 -08:00
notification Backed out 16 changesets (bug 1478124) for failing android geckoview-junit CLOSED TREE 2019-01-29 10:03:06 +02:00
offline Backed out 16 changesets (bug 1478124) for failing android geckoview-junit CLOSED TREE 2019-01-29 10:03:06 +02:00
payments Merge mozilla-inbound to mozilla-central. a=merge 2019-01-29 12:01:56 +02:00
performance Merge mozilla-inbound to mozilla-central. a=merge 2019-01-19 11:57:49 +02:00
permission Bug 1517241 - Rename nsIDocument to mozilla::dom::Document. r=smaug 2019-01-03 17:48:33 +01:00
plugins Merge mozilla-inbound to mozilla-central. a=merge 2019-02-02 11:44:15 +02:00
power Bug 1521000 - Part 2: Adjust our clang-format rules to include spaces after the hash for nested preprocessor directives r=sylvestre 2019-01-18 10:16:18 +01:00
presentation Bug 1518283 - prohibit blank lines at the beginning and end of blocks (eslint padded-blocks) r=mossop,Standard8 2019-01-30 17:26:25 +00:00
prio Bug 1518728 - pass key length to libprio public key export function and use long long for output r=hsivonen 2019-01-11 08:25:42 +00:00
promise Bug 1521907 part 4. Start using CheckedUnwrapStatic/Dynamic in non-binding DOM code. r=peterv 2019-02-02 03:24:22 +00:00
push Bug 1517406 - Fix this test to listen in the proper process. r=asuth 2019-01-29 15:41:06 -05:00
quota Bug 1519822 - Support IPv6 URL on OriginParser; r=asuth 2019-02-01 13:04:14 +00:00
reporting Bug 1515277 - Separate ClearData flag for Reporting data, r=jkt, r=smaug 2019-01-11 09:43:58 +01:00
res
script Bug 1523897 - Only initialize debugger data for modules the first time they are executed r=smaug 2019-02-01 10:26:14 +00:00
security Backed out 16 changesets (bug 1478124) for failing android geckoview-junit CLOSED TREE 2019-01-29 10:03:06 +02:00
serviceworkers Bug 1517406 - Resolve a race between the controlled iframe and the SW. r=asuth 2019-01-29 15:41:10 -05:00
simpledb Bug 1521000 - Part 2: Adjust our clang-format rules to include spaces after the hash for nested preprocessor directives r=sylvestre 2019-01-18 10:16:18 +01:00
smil Bug 1522749 - Fix SMIL include guard naming. r=birtles 2019-01-25 08:16:09 +00:00
storage Bug 1515665 - SessionStorage should be allowed when StorageAccess is ePartitionedOrDeny, r=ehsan 2019-01-23 19:19:20 +01:00
svg Bug 1519185: Remove AttributeWillChange aNewValue parameter r=emilio,bzbarsky 2019-01-29 17:59:38 +01:00
system Bug 1518283 - prohibit blank lines at the beginning and end of blocks (eslint padded-blocks) r=mossop,Standard8 2019-01-30 17:26:25 +00:00
tests Bug 1518283 - prohibit blank lines at the beginning and end of blocks (eslint padded-blocks) r=mossop,Standard8 2019-01-30 17:26:25 +00:00
u2f Bug 1517611 - Cycle collect WebAuthnManager and U2F more. r=smaug 2019-01-18 23:21:46 +00:00
url Bug 1514594: Part 3 - Change ChromeUtils.import API. 2019-01-17 10:18:31 -08:00
vr Bug 1520526 - Add categories to all profiler markers; r=mstange 2019-01-18 15:40:15 +00:00
webauthn Bug 1522145 - Web Authentication - Support additional Windows Hello Algorithms r=keeler 2019-01-24 18:38:49 +00:00
webbrowserpersist Bug 1517241 - Rename nsIDocument to mozilla::dom::Document. r=smaug 2019-01-03 17:48:33 +01:00
webgpu Bug 1512052 - Add more .eslintrc.js files for test directories. r=mossop 2018-12-11 13:15:08 +00:00
webidl Bug 1521604 Part 2: Create a Node chrome-only parentFlexElement property, for use by devtools. r=dholbert,bzbarsky 2019-02-01 22:29:34 +00:00
websocket Bug 1517241 - Rename nsIDocument to mozilla::dom::Document. r=smaug 2019-01-03 17:48:33 +01:00
workers Bug 1521907 part 4. Start using CheckedUnwrapStatic/Dynamic in non-binding DOM code. r=peterv 2019-02-02 03:24:22 +00:00
worklet Bug 1501709 - AudioWorkletGlobalScope::RegisterProcessor: check descriptors and convert them to an internal representation. r=karlt,baku,froydnj 2019-01-10 18:45:38 +00:00
xbl Bug 1521907 part 5. Start using CheckedUnwrapStatic/Dynamic in XPConnect. r=peterv 2019-02-02 03:24:45 +00:00
xhr Bug 1467223 - Part 1: Move CrossProcessRedirect Message to PContent, r=valentin 2019-01-23 21:27:44 +00:00
xml Bug 1523655 - Allow non-HTML elements to attach UA Shadow Root r=emilio 2019-01-31 18:33:30 +00:00
xslt Merge mozilla-inbound to mozilla-central. a=merge 2019-01-29 12:01:56 +02:00
xul Merge mozilla-inbound to mozilla-central. a=merge 2019-01-29 12:01:56 +02:00
jar.mn
moz.build Bug 1286798 - Part 3: New basic (memory only) implementation of LocalStorage; r=asuth,mccr8 2018-11-29 21:47:20 +01:00